- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 881 for implement (0.2 sec)
-
android/guava/src/com/google/common/collect/AbstractIterator.java
* ordinarily difficult to write iterators for. But using this class, one must implement only the * {@link #computeNext} method, and invoke the {@link #endOfData} method when appropriate. * * <p>Another example is an iterator that skips over null elements in a backing iterator. This could * be implemented as: * * <pre>{@code * public static Iterator<String> skipNulls(final Iterator<String> in) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Mar 18 02:04:10 GMT 2022 - 6.4K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/AbstractCache.java
* effort required to implement this interface. * * <p>To implement a cache, the programmer needs only to extend this class and provide an * implementation for the {@link #put} and {@link #getIfPresent} methods. {@link #getAllPresent} is * implemented in terms of {@link #getIfPresent}; {@link #putAll} is implemented in terms of {@link * #put}, {@link #invalidateAll(Iterable)} is implemented in terms of {@link #invalidate}. The
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 15 18:00:07 GMT 2021 - 9.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java
public final class JdkFutureAdapters { /** * Assigns a thread to the given {@link Future} to provide {@link ListenableFuture} functionality. * * <p><b>Warning:</b> If the input future does not already implement {@code ListenableFuture}, the * returned future will emulate {@link ListenableFuture#addListener} by taking a thread from an * internal, unbounded pool at the first call to {@code addListener} and holding it until the
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Dec 14 20:35:03 GMT 2023 - 7.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestStringListGenerator.java
int i = 0; for (Object e : elements) { array[i++] = (String) e; } return create(array); } /** * Creates a new collection containing the given elements; implement this method instead of {@link * #create(Object...)}. */ protected abstract List<String> create(String[] elements); @Override public String[] createArray(int length) { return new String[length]; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 1.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java
int i = 0; for (Object e : elements) { array[i++] = (Character) e; } return create(array); } /** * Creates a new collection containing the given elements; implement this method instead of {@link * #create(Object...)}. */ protected abstract List<Character> create(Character[] elements); @Override public Character[] createArray(int length) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 1.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingObject.java
* such as {@code Set} or {@code List}, so that the implementation of {@code equals} can cast the * object being tested for equality to the custom interface. {@code ForwardingObject} implements no * such custom interfaces directly; they are implemented only in subclasses. Therefore, forwarding * {@code equals} would break symmetry, as the forwarding object might consider itself equal to the
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 29 19:42:21 GMT 2021 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/AbstractValueGraph.java
import java.util.Set; import javax.annotation.CheckForNull; /** * This class provides a skeletal implementation of {@link ValueGraph}. It is recommended to extend * this class rather than implement {@link ValueGraph} directly. * * <p>The methods implemented in this class should not be overridden unless the subclass admits a * more efficient implementation. * * @author James Sexton * @param <N> Node parameter type
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 17 13:59:28 GMT 2023 - 4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/TearDown.java
* * <p>A failing {@link TearDown} may or may not fail a tl4j test, depending on the version of * JUnit test case you are running under. To avoid failing in the face of an exception regardless * of JUnit version, implement a {@link SloppyTearDown} instead. * * <p>tl4j details: For backwards compatibility, {@code junit3.TearDownTestCase} currently does
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri May 12 19:22:18 GMT 2023 - 1.8K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java
public abstract Queue<Integer> create(Comparator<Integer> comparator); } /** * Does a CPU intensive operation on Integer and returns a BigInteger Used to implement an * ordering that spends a lot of cpu. */ static class ExpensiveComputation implements Function<Integer, BigInteger> { @Override public BigInteger apply(Integer from) { BigInteger v = BigInteger.valueOf(from);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java
* and shutdown. Subclasses can implement {@link #startUp} and {@link #shutDown} methods, each which * run in an executor which by default uses a separate thread for each method. * * @author Chris Nokleberg * @since 1.0 */ @GwtIncompatible @J2ktIncompatible @ElementTypesAreNonnullByDefault public abstract class AbstractIdleService implements Service {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 17 13:59:28 GMT 2023 - 5.3K bytes - Viewed (0)