1 // Copyright 2018 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.base; 6 7 /** 8 * Based on Java 8's java.util.function.Supplier. 9 * Same as Callable<T>, but without a checked Exception. 10 * 11 * @param <T> Return type. 12 */ 13 public interface Supplier<T> { 14 /** 15 * Returns a value. 16 */ get()17 T get(); 18 } 19