Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 384 for New (0.11 sec)

  1. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        final AtomicBoolean interruptedExceptionThrown = new AtomicBoolean();
        final CountDownLatch enterLatch = new CountDownLatch(1);
        final CountDownLatch exitLatch = new CountDownLatch(1);
        final TrustedListenableFutureTask<Integer> task =
            TrustedListenableFutureTask.create(
                new Callable<Integer>() {
                  @Override
                  public Integer call() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TreeTraverserTest.java

      //   /|\      |
      //  / | \     f
      // a  b  c
      static final Tree a = new Tree('a');
      static final Tree b = new Tree('b');
      static final Tree c = new Tree('c');
      static final Tree d = new Tree('d', a, b, c);
      static final Tree e = new Tree('e');
      static final Tree f = new Tree('f');
      static final Tree g = new Tree('g', f);
      static final Tree h = new Tree('h', d, e, g);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

          return new Object[length];
        }
    
        @Override
        public SampleElements<Entry<TypeToken, Object>> samples() {
          return new SampleElements<>(
              entry(TypeToken.of(Integer.class), 0),
              entry(TypeToken.of(Number.class), 1),
              entry(new TypeToken<ImmutableList<Integer>>() {}, ImmutableList.of(2)),
              entry(new TypeToken<int[]>() {}, new int[] {3}),
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

        checkEntryNotNull(k1, v1);
        return new SingletonImmutableBiMap<K, V>(k1, v1);
      }
    
      public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2) {
        return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2));
      }
    
      public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) {
        return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2, k3, v3));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

          super(
              new UnhashableObject(1),
              new UnhashableObject(2),
              new UnhashableObject(3),
              new UnhashableObject(4),
              new UnhashableObject(5));
        }
      }
    
      public static class Colliders extends SampleElements<Object> {
        public Colliders() {
          super(new Collider(1), new Collider(2), new Collider(3), new Collider(4), new Collider(5));
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java

          super(
              new UnhashableObject(1),
              new UnhashableObject(2),
              new UnhashableObject(3),
              new UnhashableObject(4),
              new UnhashableObject(5));
        }
      }
    
      public static class Colliders extends SampleElements<Object> {
        public Colliders() {
          super(new Collider(1), new Collider(2), new Collider(3), new Collider(4), new Collider(5));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

        @Nullable String string;
      }
    
      public void testBuilder_withMutableEntry() {
        ImmutableMultimap.Builder<String, Integer> builder = new Builder<>();
        final StringHolder holder = new StringHolder();
        holder.string = "one";
        Entry<String, Integer> entry =
            new AbstractMapEntry<String, Integer>() {
              @Override
              public String getKey() {
                return holder.string;
              }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        assertSame(expected, future.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable_exception() throws Exception {
        final Exception expected = new IllegalArgumentException();
        Callable<String> callable =
            new Callable<String>() {
              @Override
              public String call() throws Exception {
                throw expected;
              }
            };
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top