Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 165 for consistent (0.23 sec)

  1. guava/src/com/google/common/collect/ImmutableSet.java

      }
    
      @Override
      public int hashCode() {
        return Sets.hashCodeImpl(this);
      }
    
      // This declaration is needed to make Set.iterator() and
      // ImmutableCollection.iterator() consistent.
      @Override
      public abstract UnmodifiableIterator<E> iterator();
    
      @GwtCompatible
      abstract static class CachingAsList<E> extends ImmutableSet<E> {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      }
    
      // TODO(b/172823566): Use mainline testToImmutableSortedSet once CollectorTester is usable.
      public void testToImmutableSortedSet_java7() {
        // Note that a Collector should generally enforce consistent comparator between builders
        ImmutableSortedSet.Builder<String> zis =
            ImmutableSortedSet.<String>naturalOrder().add("c", "b", "c");
        ImmutableSortedSet.Builder<String> zat =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       * example, {@code [] < [1L] < [1L, 2L] < [2L] < [1L << 63]}.
       *
       * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays
       * support only identity equality), but it is consistent with {@link Arrays#equals(long[],
       * long[])}.
       */
      public static Comparator<long[]> lexicographicalComparator() {
        return LexicographicalComparator.INSTANCE;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

          return n;
        } finally {
          monitor.leave();
        }
      }
    
      /**
       * Returns an iterator over the elements in this queue in proper sequence. The returned {@code
       * Iterator} is a "weakly consistent" iterator that will never throw {@link
       * ConcurrentModificationException}, and guarantees to traverse elements as they existed upon
       * construction of the iterator, and may (but is not guaranteed to) reflect any modifications
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      /**
       * Returns the comparator that orders the keys, which is {@link Ordering#natural()} when the
       * natural ordering of the keys is used. Note that its behavior is not consistent with {@link
       * TreeMap#comparator()}, which returns {@code null} to indicate natural ordering.
       */
      @Override
      public Comparator<? super K> comparator() {
        return keySet().comparator();
      }
    
    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)
  6. android/guava/src/com/google/common/collect/ImmutableList.java

        }
        return new RegularImmutableList<E>(elements, length);
      }
    
      ImmutableList() {}
    
      // This declaration is needed to make List.iterator() and
      // ImmutableCollection.iterator() consistent.
      @Override
      public UnmodifiableIterator<E> iterator() {
        return listIterator();
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator() {
        return listIterator(0);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/Stats.java

            && doubleToLongBits(min) == doubleToLongBits(other.min)
            && doubleToLongBits(max) == doubleToLongBits(other.max);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p><b>Note:</b> This hash code is consistent with exact equality of the calculated statistics,
       * including the floating point values. See the note on {@link #equals} for details.
       */
      @Override
      public int hashCode() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Booleans.java

       * lesser. For example, {@code [] < [false] < [false, true] < [true]}.
       *
       * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays
       * support only identity equality), but it is consistent with {@link Arrays#equals(boolean[],
       * boolean[])}.
       *
       * @since 2.0
       */
      public static Comparator<boolean[]> lexicographicalComparator() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Ordering.java

       * not even implement {@link Comparable} at all).
       *
       * <p><b>Warning:</b> by definition, this comparator is not <i>consistent with equals</i> (as
       * defined {@linkplain Comparator here}). Avoid its use in APIs, such as {@link
       * TreeSet#TreeSet(Comparator)}, where such consistency is expected.
       *
       * <p>The returned comparator is serializable.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

       * over entries in the same order as the {@code entrySet} of the original map. If {@code map}
       * somehow contains entries with duplicate keys (for example, if it is a {@code SortedMap} whose
       * comparator is not <i>consistent with equals</i>), the results of this method are undefined.
       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
Back to top