- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 531 for fast (0.02 sec)
-
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
} Class<? extends T> implementation = getImplementation(type); if (implementation != null) { return get(implementation); } if (type == Stream.class) { return type.cast(Stream.empty()); } if (type.isEnum()) { T[] enumConstants = type.getEnumConstants(); return (enumConstants == null || enumConstants.length == 0) ? null : enumConstants[0]; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 21.4K bytes - Viewed (0) -
guava/src/com/google/common/base/Predicate.java
* * <p>Historically, {@code Predicate} instances in this library have implemented this method to * recognize certain cases where distinct {@code Predicate} instances would in fact behave * identically. However, as code migrates to {@code java.util.function}, that behavior will * disappear. It is best not to depend on it. */ @Override boolean equals(@Nullable Object obj);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 18 15:22:00 UTC 2025 - 3.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingObject.java
* the symmetry of {@code equals}. Custom definitions of equality are usually based on an interface, * 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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3K bytes - Viewed (0) -
guava/src/com/google/common/hash/ChecksumHashFunction.java
public HashCode hash() { long value = checksum.getValue(); if (bits == 32) { /* * The long returned from a 32-bit Checksum will have all 0s for its second word, so the * cast won't lose any information and is necessary to return a HashCode of the correct * size. */ return HashCode.fromInt((int) value); } else { return HashCode.fromLong(value); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/SLinkedList.java
return first; } /** * Removes the last element. * * @return the last element */ public E removeLast() { if (isEmpty()) { throw new NoSuchElementException(); } final E last = header.previous.element; header.previous.remove(); return last; } /** * Adds an element at the beginning.
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableBiMap.java
@Override public @Nullable V get(@Nullable Object key) { Object result = RegularImmutableMap.get(keyHashTable, alternatingKeysAndValues, size, keyOffset, key); /* * We can't simply cast the result of `RegularImmutableMap.get` to V because of a bug in our * nullness checker (resulting from https://github.com/jspecify/checker-framework/issues/8). */ if (result == null) { return null;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Platform.java
* class could be unloaded after the above call to `getEnumConstants` but before we call * `get()`, but that is vanishingly unlikely. */ return ref == null ? Optional.absent() : Optional.fromNullable(enumClass.cast(ref.get())); } static String formatCompact4Digits(double value) { return String.format(Locale.ROOT, "%.4g", value); } static boolean stringIsNullOrEmpty(@Nullable String string) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
if (field.getGenericType() == field.getType() && type.isAssignableFrom(field.getType())) { field.setAccessible(true); try { T constant = type.cast(field.get(null)); if (constant != null) { return constant; } } catch (IllegalAccessException impossible) { throw new AssertionError(impossible); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
// We cannot directly access private fields of MsrpcSamrOpenAlias or its superclass // Instead, we verify the interaction with the DcerpcHandle and the return value. // The fact that the constructor completes without exception and sets 'opened' to true // implies the correct parameters were used internally. } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java
Class<? extends T> type = entry.getKey(); T value = entry.getValue(); mapBuilder.put(type, cast(type, value)); } return this; } private static <T> T cast(Class<T> type, Object value) { return Primitives.wrap(type).cast(value); } /** * Returns a new immutable class-to-instance map containing the entries provided to this * builder.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.1K bytes - Viewed (0)