Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 225 for neutral (0.15 sec)

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

       */
      private static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    
      private static final ImmutableSortedMap<Comparable<?>, Object> NATURAL_EMPTY_MAP =
          new ImmutableSortedMap<>(
              ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.<Object>of());
    
      static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) {
        if (Ordering.natural().equals(comparator)) {
          return of();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      }
    
      static <E> RegularImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) {
        if (Ordering.natural().equals(comparator)) {
          @SuppressWarnings("unchecked") // The natural-ordered empty set supports all types.
          RegularImmutableSortedSet<E> result =
              (RegularImmutableSortedSet<E>) RegularImmutableSortedSet.NATURAL_EMPTY_SET;
          return result;
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        assertSame(Ordering.natural(), copy.comparator());
      }
    
      public void testCopyOfSingletonMap() {
        ImmutableSortedMap<String, Integer> copy =
            ImmutableSortedMap.copyOf(Collections.singletonMap("one", 1));
        assertMapEquals(copy, "one", 1);
        assertSame(copy, ImmutableSortedMap.copyOf(copy));
        assertSame(Ordering.natural(), copy.comparator());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

                .allowsSelfLoops(true)
                .nodeOrder(ElementOrder.<String>natural())
                .<String, Integer>immutable()
                .build();
    
        assertThat(emptyNetwork.isDirected()).isTrue();
        assertThat(emptyNetwork.allowsSelfLoops()).isTrue();
        assertThat(emptyNetwork.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 5.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .allowsSelfLoops(true)
                .nodeOrder(ElementOrder.<String>natural())
                .<String, Integer>immutable()
                .build();
    
        assertThat(emptyGraph.isDirected()).isTrue();
        assertThat(emptyGraph.allowsSelfLoops()).isTrue();
        assertThat(emptyGraph.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 6.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import java.util.Iterator;
    
    /** An ordering that uses the reverse of the natural order of the values. */
    @GwtCompatible(serializable = true)
    @SuppressWarnings({"unchecked", "rawtypes"}) // TODO(kevinb): the right way to explain this??
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 2.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        assertThat(copy.keySet()).containsExactly("google", "tree").inOrder();
        assertThat(copy.get("google")).containsExactly(2, 6).inOrder();
        assertEquals(Ordering.natural(), copy.keyComparator());
        assertEquals(Ordering.natural(), copy.valueComparator());
        assertEquals(Ordering.natural(), copy.get("google").comparator());
      }
    
      public void testToString() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        sortedTable = TreeBasedTable.create();
        sortedTable.put("", 42, 'x');
        assertSame(Ordering.natural(), sortedTable.columnComparator());
        assertSame(
            Ordering.natural(),
            ((SortedMap<Integer, Character>) sortedTable.rowMap().values().iterator().next())
                .comparator());
    
        sortedTable = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
                        return Ordering.natural().sortedCopy(insertionOrder);
                      }
                    })
                .named("ImmutableSortedMultiset")
                .withFeatures(
                    CollectionSize.ANY,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SortedMultiset.java

    @ElementTypesAreNonnullByDefault
    public interface SortedMultiset<E extends @Nullable Object>
        extends SortedMultisetBridge<E>, SortedIterable<E> {
      /**
       * Returns the comparator that orders this multiset, or {@link Ordering#natural()} if the natural
       * ordering of the elements is used.
       */
      @Override
      Comparator<? super E> comparator();
    
      /**
       * Returns the entry of the first element in this multiset, or {@code null} if this multiset is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.5K bytes
    - Viewed (0)
Back to top