- Sort Score
- Result 10 results
- Languages All
Results 481 - 490 of 1,875 for isobject (0.05 sec)
-
SafeTreeMap.java
L41:public final class SafeTreeMap<K, V> implements Serializable, NavigableMap<K, V> { L42: @SuppressWarnings("unchecked") L43: private static final Comparator<Object> NATURAL_ORDER = L44: new Comparator<Object>() { L45: @Override L46: public int compare(Object o1, Object o2) { L47: return ((Comparable<Object>) o1).compareTo(o2); L48: } L49: }; L50: L51: private final NavigableMap<K, V> delegate; L52: L53: public SafeTreeMap() { L54: this(new TreeMap<K,...github.com/google/guava/android/guava-testlib/s...Tue Feb 20 17:00:05 UTC 2024 7.5K bytes -
RegularContiguousSet.java
L223: range.upperBound.withUpperBoundType(upperBoundType, domain)); L224: } L225: L226: @Override L227: public boolean equals(@CheckForNull Object object) { L228: if (object == this) { L229: return true; L230: } else if (object instanceof RegularContiguousSet) { L231: RegularContiguousSet<?> that = (RegularContiguousSet<?>) object; L232: if (this.domain.equals(that.domain)) { L233: return this.first().equals(that.first()) && this.last().equals(that.last()); L234:...github.com/google/guava/android/guava/src/com/g...Thu Feb 22 21:19:52 UTC 2024 8.4K bytes -
SynchronizedMapTest.java
return super.isEmpty(); L72: } L73: L74: @Override L75: public @Nullable V remove(Object object) { L76: assertTrue(Thread.holdsLock(mutex)); L77: return super.remove(object); L78: } L79: L80: @Override L81: public void clear() { L82: assertTrue(Thread.holdsLock(mutex)); L83: super.clear(); L84: } L85: L86: @Override L87: public boolean containsKey(Object key) { L88: assertTrue(Thread.holdsLock(mutex)); L89: return super.containsKey(key);...github.com/google/guava/android/guava-tests/tes...Tue Aug 06 17:23:04 UTC 2024 5.8K bytes -
CollectPreconditions.java
otations.CanIgnoreReturnValue; L23: L24:/** Precondition checks useful in collection implementations. */ L25:@GwtCompatible L26:@ElementTypesAreNonnullByDefault L27:final class CollectPreconditions { L28: L29: static void checkEntryNotNull(Object key, Object value) { L30: if (key == null) { L31: throw new NullPointerException("null key in entry: null=" + value); L32: } else if (value == null) { L33: throw new NullPointerException("null value in entry: " + key + "=null"); L34: ...github.com/google/guava/guava/src/com/google/co...Wed Jun 30 10:33:07 UTC 2021 2.1K bytes -
CollectionEqualsTester.java
// TODO(cpovirk): Consider using EqualsTester from Guava. L34: @SuppressWarnings("SelfEquals") L35: public void testEquals_self() { L36: assertTrue("An Object should be equal to itself.", collection.equals(collection)); L37: } L38: L39: public void testEquals_null() { L40: // noinspection ObjectEqualsNull L41: assertFalse("An object should not be equal to null.", collection.equals(null)); L42: } L43: L44: public void testEquals_notACollection() { L45: // noinspection EqualsBetweenInconvertibleTypes...github.com/google/guava/android/guava-testlib/s...Wed Jul 24 20:12:35 UTC 2024 1.7K bytes -
LocalCache.java
L693: } L694: L695: @Override L696: public V getValue() { L697: return value; L698: } L699: L700: @Override L701: public boolean equals(@Nullable Object object) { L702: // Cannot use key and value equivalence L703: if (object instanceof Entry) { L704: Entry<?, ?> that = (Entry<?, ?>) object; L705: return key.equals(that.getKey()) && value.equals(that.getValue()); L706: } L707: return false; L708: } L709: L710: @Override L711: public...github.com/google/guava/guava-gwt/src-super/com...Tue Feb 27 19:19:19 UTC 2024 21.6K bytes -
CacheLoaderTest.java
final AtomicInteger loadAllCount = new AtomicInteger(); L56: L57: CacheLoader<Object, Object> baseLoader = L58: new CacheLoader<Object, Object>() { L59: @Override L60: public Object load(Object key) { L61: loadCount.incrementAndGet(); L62: return new Object(); L63: } L64: L65: @Override L66: public ListenableFuture<Object> reload(Object key, Object oldValue) { L67: reloadCount.incrementAndGet(); L68: return...github.com/google/guava/guava-tests/test/com/go...Fri Oct 18 19:07:49 UTC 2024 3.6K bytes -
DocumentUtilTest.java
test_integer() { L60: Map<String, Object> doc = new HashMap<>(); L61: L62: int expected3 = 999; L63: doc.put("key3", expected3); L64: assertEquals(expected3, DocumentUtil.getValue(doc, "key3", Integer.class)); L65: L66: doc.put("key9", new ArrayList<Integer>(Arrays.asList(777, 888, 999))); L67: assertEquals(777, DocumentUtil.getValue(doc, "key9", Integer.class)); L68: } L69: L70: public void test_date() { L71: Map<String, Object> doc = new HashMap<>(); L72:...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 4K bytes -
ListToArrayTester.java
actual); L47: } L48: L49: public void testToArray_largeEnough() { L50: Object[] actual = getList().toArray(new Object[getNumElements()]); L51: assertArrayEquals("toArray(largeEnough) order should match list", createOrderedArray(), actual); L52: } L53: L54: private static void assertArrayEquals(String message, Object[] expected, Object[] actual) { L55: assertEquals(message, asList(expected), asList(actual)); L56: } L57:}...github.com/google/guava/guava-testlib/src/com/g...Sat Oct 19 00:05:46 UTC 2024 2.2K bytes -
ListenerCallQueueTest.java
service.shutdown(); L180: } L181: } L182: L183: private ListenerCallQueue.Event<Object> incrementingEvent( L184: Multiset<Object> counters, Object expectedListener, int expectedCount) { L185: return incrementingEvent(counters, multiset(expectedListener, expectedCount)); L186: } L187: L188: private ListenerCallQueue.Event<Object> incrementingEvent( L189: final Multiset<Object> counters, final Multiset<Object> expected) { L190: return new ListenerCallQueue.Event<Object>() { L191: ...github.com/google/guava/android/guava-tests/tes...Wed Feb 09 22:57:07 UTC 2022 8.2K bytes