Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 52 for Bolder (0.14 sec)

  1. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K 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. 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)
  4. 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)
  5. 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)
  6. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

      }
    
      public void testBuilder_withMutableCell() {
        ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>();
    
        final StringHolder holder = new StringHolder();
        holder.string = "foo";
        Table.Cell<Character, Integer, String> mutableCell =
            new Tables.AbstractCell<Character, Integer, String>() {
              @Override
              public Character getRowKey() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 20K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/MoreObjects.java

          valueHolder.name = checkNotNull(name);
          return this;
        }
    
        // Holder object for values that might be null and/or empty.
        static class ValueHolder {
          @CheckForNull String name;
          @CheckForNull Object value;
          @CheckForNull ValueHolder next;
        }
    
        /**
         * Holder object for values that cannot be null or empty (will be printed unconditionally). This
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Striped64.java

       * contention. See above for explanation. This method suffers the usual non-modularity problems of
       * optimistic retry code, relying on rechecked sets of reads.
       *
       * @param x the value
       * @param hc the hash code holder
       * @param wasUncontended false if CAS failed before call
       */
      final void retryUpdate(long x, @CheckForNull int[] hc, boolean wasUncontended) {
        int h;
        if (hc == null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      @J2ktIncompatible // Kotlin Native's regex is based on Apache Harmony, like old Android
      @GwtIncompatible // java.util.regex.Pattern
      @AndroidIncompatible // Bug in older versions of Android we test against, since fixed.
      public void testPatternSplitLookBehind() {
        if (!CommonPattern.isPcreLike()) {
          return;
        }
        String toSplit = ":foo::barbaz:";
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Optional.java

        return (nullableReference == null) ? Optional.<T>absent() : new Present<T>(nullableReference);
      }
    
      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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
Back to top