Search Options

Results per page
Sort
Preferred Languages
Advance

Results 921 - 930 of 4,107 for Subject (0.09 sec)

  1. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

      private static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> entry(
          final K key, final V value) {
        return new AbstractMapEntry<K, V>() {
          @Override
          public K getKey() {
            return key;
          }
    
          @Override
          public V getValue() {
            return value;
          }
        };
      }
    
      private static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> control(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ForwardingSortedSetTest.java

          standardClear();
        }
    
        @Override
        public boolean contains(Object object) {
          return standardContains(object);
        }
    
        @Override
        public boolean containsAll(Collection<?> collection) {
          return standardContainsAll(collection);
        }
    
        @Override
        public boolean remove(Object object) {
          return standardRemove(object);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        }
    
        @Override
        public V getValue() {
          return value;
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
          // Cannot use key and value equivalence
          if (object instanceof Entry) {
            Entry<?, ?> that = (Entry<?, ?>) object;
            return key.equals(that.getKey()) && value.equals(that.getValue());
          }
          return false;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

      // Always equal is a valid total ordering. And it works for any Object.
      private static final class AlwaysEqual extends Ordering<@Nullable Object>
          implements Serializable {
        private static final AlwaysEqual INSTANCE = new AlwaysEqual();
    
        @Override
        @SuppressWarnings("UnusedVariable") // intentionally weird Comparator
        public int compare(@Nullable Object o1, @Nullable Object o2) {
          return 0;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/LegacyComparable.java

      }
    
      @Override
      public int compareTo(Object object) {
        // This method is spec'd to throw CCE if object is of the wrong type
        LegacyComparable that = (LegacyComparable) object;
        return this.value.compareTo(that.value);
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
        if (object instanceof LegacyComparable) {
          LegacyComparable that = (LegacyComparable) object;
          return this.value.equals(that.value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Table.java

     * @since 7.0
     */
    @DoNotMock("Use ImmutableTable, HashBasedTable, or another implementation")
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface Table<
        R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> {
      // TODO(jlevy): Consider adding methods similar to ConcurrentMap methods.
    
      // Accessors
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  7. api/maven-api-model/src/main/java/org/apache/maven/api/model/InputLocation.java

            if (source == null) {
                return target;
            } else if (target == null) {
                return source;
            }
    
            Map<Object, InputLocation> locations;
            Map<Object, InputLocation> sourceLocations = source.locations;
            Map<Object, InputLocation> targetLocations = target.locations;
            if (sourceLocations == null) {
                locations = targetLocations;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 15 13:24:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

    public class AtomicsTest extends TestCase {
    
      private static final Object OBJECT = new Object();
    
      public void testNewReference() throws Exception {
        assertEquals(null, Atomics.newReference().get());
      }
    
      public void testNewReference_withInitialValue() throws Exception {
        assertEquals(null, Atomics.newReference(null).get());
        assertEquals(OBJECT, Atomics.newReference(OBJECT).get());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java

      public final Set<Feature<?>> getAbsentFeatures() {
        return absentFeatures;
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
        if (object == this) {
          return true;
        }
        if (object instanceof TesterRequirements) {
          TesterRequirements that = (TesterRequirements) object;
          return this.presentFeatures.equals(that.presentFeatures)
              && this.absentFeatures.equals(that.absentFeatures);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/PredicatesTest.java

      public void testAnd_iterableDefensivelyCopied() {
        final List<Predicate<Object>> list = newArrayList();
        Iterable<Predicate<Object>> iterable =
            new Iterable<Predicate<Object>>() {
              @Override
              public Iterator<Predicate<Object>> iterator() {
                return list.iterator();
              }
            };
        Predicate<Object> predicate = Predicates.and(iterable);
        assertTrue(predicate.apply(1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top