Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,867 for _new (0.18 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

      public final @Nullable V put(K k, V v) {
        throw new UnsupportedOperationException();
      }
    
      public final @Nullable V remove(Object o) {
        throw new UnsupportedOperationException();
      }
    
      public final void putAll(Map<? extends K, ? extends V> map) {
        throw new UnsupportedOperationException();
      }
    
      public final void clear() {
        throw new UnsupportedOperationException();
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

      }
    
      public void testRemovalListener_expireAfterWrite() {
        FakeTicker ticker = new FakeTicker();
        final AtomicInteger evictionCount = new AtomicInteger();
        final AtomicInteger applyCount = new AtomicInteger();
        final AtomicInteger totalSum = new AtomicInteger();
    
        RemovalListener<Integer, AtomicInteger> removalListener =
            new RemovalListener<Integer, AtomicInteger>() {
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/EquivalenceTest.java

      public void testOnResultOf() {
        EquivalenceTester.of(Equivalence.equals().onResultOf(Functions.toStringFunction()))
            .addEquivalenceGroup(new IntValue(1), new IntValue(1))
            .addEquivalenceGroup(new IntValue(2))
            .test();
      }
    
      public void testOnResultOf_equals() {
        new EqualsTester()
            .addEqualityGroup(
                Equivalence.identity().onResultOf(Functions.toStringFunction()),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Preconditions.java

          @CheckForNull Object p4) {
        if (reference == null) {
          throw new NullPointerException(lenientFormat(errorMessageTemplate, p1, p2, p3, p4));
        }
        return reference;
      }
    
      /*
       * All recent hotspots (as of 2009) *really* like to have the natural code
       *
       * if (guardExpression) {
       *    throw new BadException(messageExpression);
       * }
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        final SimpleTearDown tearDownOne = new SimpleTearDown();
        stack.addTearDown(tearDownOne);
    
        final Callback callback =
            new Callback() {
              @Override
              public void run() {
                assertEquals(
                    "tearDownTwo should have been run before tearDownOne", false, tearDownOne.ran);
              }
            };
    
        final SimpleTearDown tearDownTwo = new SimpleTearDown(callback);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

      public final boolean add(E e) {
        throw new UnsupportedOperationException();
      }
    
      public final boolean remove(@Nullable Object object) {
        throw new UnsupportedOperationException();
      }
    
      public final boolean addAll(Collection<? extends E> newElements) {
        throw new UnsupportedOperationException();
      }
    
      public final boolean removeAll(Collection<?> oldElements) {
        throw new UnsupportedOperationException();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        @Override
        public String toString() {
          return "IsOdd";
        }
      }
    
      /**
       * Generates a new Predicate per call.
       *
       * <p>Creating a new Predicate each time helps catch cases where code is using {@code x == y}
       * instead of {@code x.equals(y)}.
       */
      private static IsOdd isOdd() {
        return new IsOdd();
      }
    
      /*
       * Tests for Predicates.alwaysTrue().
       */
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TableCollectionTest.java

      @J2ktIncompatible
      @GwtIncompatible // suite
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        // Not testing rowKeySet() or columnKeySet() of Table.transformValues()
        // since the transformation doesn't affect the row and column key sets.
    
        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
                      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

      @Override
      public void setUp() throws Exception {
        super.setUp();
        reference = new ValidTestObject(1, 2);
        equalsTester = new EqualsTester();
        equalObject1 = new ValidTestObject(1, 2);
        equalObject2 = new ValidTestObject(1, 2);
        notEqualObject1 = new ValidTestObject(0, 2);
      }
    
      /** Test null reference yields error */
      public void testAddNullReference() {
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

      private static final ImmutableIntArray EMPTY = new ImmutableIntArray(new int[0]);
    
      /** Returns the empty array. */
      public static ImmutableIntArray of() {
        return EMPTY;
      }
    
      /** Returns an immutable array containing a single value. */
      public static ImmutableIntArray of(int e0) {
        return new ImmutableIntArray(new int[] {e0});
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top