Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 127 for Bolder (0.13 sec)

  1. guava/src/com/google/common/base/Optional.java

       *
       * @since 21.0
       */
      public java.util.Optional<T> toJavaUtil() {
        return java.util.Optional.ofNullable(orNull());
      }
    
      Optional() {}
    
      /**
       * Returns {@code true} if this holder contains a (non-null) instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       */
      public abstract boolean isPresent();
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        }
    
        private static final long serialVersionUID = 5;
      }
    
      public void testMutableValues() {
        IntHolder holderA = new IntHolder(1);
        IntHolder holderB = new IntHolder(2);
        Map<String, IntHolder> map = ImmutableMap.of("a", holderA, "b", holderB);
        holderA.value = 3;
        assertTrue(map.entrySet().contains(Maps.immutableEntry("a", new IntHolder(3))));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       */
    
      /** The number of occurrences of each element. */
      private final transient ConcurrentMap<E, AtomicInteger> countMap;
    
      // This constant allows the deserialization code to set a final field. This holder class
      // makes sure it is not initialized unless an instance is deserialized.
      private static class FieldSettersHolder {
        static final FieldSetter<? super ConcurrentHashMultiset<?>> COUNT_MAP_FIELD_SETTER =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/CountTest.java

      }
    
      public void testGetAndAdd() {
        Count holder = new Count(20);
        assertEquals(20, holder.get());
        holder.add(1);
        assertEquals(21, holder.get());
      }
    
      public void testAddAndGet() {
        Count holder = new Count(20);
        assertEquals(21, holder.addAndGet(1));
      }
    
      public void testGetAndSet() {
        Count holder = new Count(10);
        assertEquals(10, holder.getAndSet(20));
        assertEquals(20, holder.get());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashingTest.java

      }
    
      public void checkSameResult(HashCode hashCode, long equivLong) {
        assertEquals(Hashing.consistentHash(equivLong, 5555), Hashing.consistentHash(hashCode, 5555));
      }
    
      /**
       * Check a few "golden" values to see that implementations across languages are equivalent.
       *
       */
      public void testConsistentHash_linearCongruentialGeneratorCompatibility() {
        int[] golden100 = {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java

       * it can fail here.
       */
      public void testAnonymous() {
        final AtomicReference<String> holder = new AtomicReference<>();
        final AtomicInteger deliveries = new AtomicInteger();
        EventBus bus = new EventBus();
        bus.register(
            new Object() {
              @Subscribe
              public void accept(String str) {
                holder.set(str);
                deliveries.incrementAndGet();
              }
            });
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue May 15 20:25:06 GMT 2018
    - 1.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CollectSpliterators.java

          @CheckForNull T holder = null;
    
          @Override
          public void accept(@ParametricNullness T t) {
            this.holder = t;
          }
    
          @Override
          public boolean tryAdvance(Consumer<? super T> action) {
            while (fromSpliterator.tryAdvance(this)) {
              try {
                // The cast is safe because tryAdvance puts a T into `holder`.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 15:21:23 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      private abstract static class Holder<T> {
        Type getContentType() {
          return new TypeToken<T>(getClass()) {}.getType();
        }
      }
    
      public void testResolvePrimitiveArrayType() {
        assertEquals(new TypeToken<int[]>() {}.getType(), new Holder<int[]>() {}.getContentType());
        assertEquals(new TypeToken<int[][]>() {}.getType(), new Holder<int[][]>() {}.getContentType());
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        ImmutableListMultimap.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;
              }
    
              @Override
              public Integer getValue() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/IgnoreJRERequirement.java

    import static java.lang.annotation.ElementType.METHOD;
    import static java.lang.annotation.ElementType.TYPE;
    
    import java.lang.annotation.Target;
    
    /**
     * Disables Animal Sniffer's checking of compatibility with older versions of Java/Android.
     *
     * <p>Each package's copy of this annotation needs to be listed in our {@code pom.xml}.
     */
    @Target({METHOD, CONSTRUCTOR, TYPE})
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 06 02:06:03 GMT 2023
    - 1.1K bytes
    - Viewed (0)
Back to top