Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for Empty (0.24 sec)

  1. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

        return CollectCollectors.toImmutableRangeSet();
      }
    
      /**
       * Returns an empty immutable range set.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked")
      public static <C extends Comparable> ImmutableRangeSet<C> of() {
        return (ImmutableRangeSet<C>) EMPTY;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

                .addValue(null)
                .add(SHORT_NAME, java.util.Optional.of("1"))
                .add(LONG_NAME, java.util.Optional.of("1"))
                .add(SHORT_NAME, java.util.Optional.empty())
                .add(LONG_NAME, java.util.Optional.empty())
                .add(SHORT_NAME, Optional.of("2"))
                .add(SHORT_NAME, Optional.absent())
                .addValue(null)
                .add(SHORT_NAME, new int[] {1})
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/UnsignedBytes.java

       * @return the value present in {@code array} that is less than or equal to every other value in
       *     the array according to {@link #compare}
       * @throws IllegalArgumentException if {@code array} is empty
       */
      public static byte min(byte... array) {
        checkArgument(array.length > 0);
        int min = toInt(array[0]);
        for (int i = 1; i < array.length; i++) {
          int next = toInt(array[i]);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/Striped64.java

       * The table size is doubled upon further contention until
       * reaching the nearest power of two greater than or equal to the
       * number of CPUS. Table slots remain empty (null) until they are
       * needed.
       *
       * A single spinlock ("busy") is used for initializing and
       * resizing the table, as well as populating slots with new Cells.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Sets.java

       *     // operate on tuple
       *   }
       * }
       * }</pre>
       *
       * <p>Note that if any input set is empty, the Cartesian product will also be empty. If no sets at
       * all are provided (an empty list), the resulting Cartesian product has one element, an empty
       * list (counter-intuitive, but mathematically consistent).
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       * @return the value present in {@code array} that is less than or equal to every other value in
       *     the array according to {@link #compare}
       * @throws IllegalArgumentException if {@code array} is empty
       */
      public static byte min(byte... array) {
        checkArgument(array.length > 0);
        int min = toInt(array[0]);
        for (int i = 1; i < array.length; i++) {
          int next = toInt(array[i]);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Ordering.java

       *
       * <p><b>Java 8+ users:</b> Use a chain of calls to {@link Comparator#thenComparing(Comparator)},
       * or {@code comparatorCollection.stream().reduce(Comparator::thenComparing).get()} (if the
       * collection might be empty, also provide a default comparator as the {@code identity} parameter
       * to {@code reduce}).
       *
       * @param comparators the comparators to try in order
       */
      @GwtCompatible(serializable = true)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(empty, Sets.subSet(set, Range.open(20, 30)));
    
        assertEquals(set, Sets.subSet(set, Range.openClosed(0, 12)));
        assertEquals(ImmutableSortedSet.of(2, 4), Sets.subSet(set, Range.openClosed(0, 4)));
        assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.openClosed(2, 6)));
        assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.openClosed(3, 7)));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSet.java

      public static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return CollectCollectors.toImmutableSet();
      }
    
      /**
       * Returns the empty immutable set. Preferred over {@link Collections#emptySet} for code
       * consistency, and because the return type conveys the immutability guarantee.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MapsTest.java

      private static final Map<Integer, Integer> EMPTY = Collections.emptyMap();
      private static final Map<Integer, Integer> SINGLETON = Collections.singletonMap(1, 2);
    
      public void testMapDifferenceEmptyEmpty() {
        MapDifference<Integer, Integer> diff = Maps.difference(EMPTY, EMPTY);
        assertTrue(diff.areEqual());
        assertEquals(EMPTY, diff.entriesOnlyOnLeft());
        assertEquals(EMPTY, diff.entriesOnlyOnRight());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
Back to top