Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for value (0.19 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      private static class IntHolder implements Serializable {
        public int value;
    
        public IntHolder(int value) {
          this.value = value;
        }
    
        @Override
        public boolean equals(@Nullable Object o) {
          return (o instanceof IntHolder) && ((IntHolder) o).value == value;
        }
    
        @Override
        public int hashCode() {
          return value;
        }
    
        private static final long serialVersionUID = 5;
    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)
  2. android/guava/src/com/google/common/collect/Maps.java

       * and values in the map are.
       *
       * @param values the values to use when constructing the {@code Map}
       * @param keyFunction the function used to produce the key for each value
       * @return a map mapping the result of evaluating the function {@code keyFunction} on each value
       *     in the input collection to that value
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> putAll(K key, Iterable<? extends V> values) {
          super.putAll(key, values);
          return this;
        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> putAll(K key, V... values) {
          super.putAll(key, values);
          return this;
        }
    
        @CanIgnoreReturnValue
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSet.java

          for (int j = Hashing.smear(hash); ; j++) {
            int index = j & mask;
            Object value = table[index];
            if (value == null) {
              // Came to an empty slot. Put the element here.
              elements[uniques++] = element;
              table[index] = element;
              hashCode += hash;
              break;
            } else if (value.equals(element)) {
              break;
            }
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableList.java

      // whatever warnings might come along with it. :(
    
      /**
       * Returns an immutable list containing the given elements, in order.
       *
       * <p>The array {@code others} must not be longer than {@code Integer.MAX_VALUE - 12}.
       *
       * @throws NullPointerException if any element is null
       * @since 3.0 (source-compatible since 2.0)
       */
      @SafeVarargs // For Eclipse. For internal javac we have disabled this pointless type of warning.
    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)
  6. android/guava/src/com/google/common/collect/ImmutableMultiset.java

         * @throws NullPointerException if {@code element} is null
         * @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation
         *     would result in more than {@link Integer#MAX_VALUE} occurrences of the element
         */
        @CanIgnoreReturnValue
        public Builder<E> addCopies(E element, int occurrences) {
          requireNonNull(contents); // see the comment on the field
          if (occurrences == 0) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

       * boolean) headSet()}) to actually construct the view. Consult these methods for a full
       * description of the returned view's behavior.
       *
       * <p><b>Warning:</b> {@code Range}s always represent a range of values using the values' natural
       * ordering. {@code NavigableSet} on the other hand can specify a custom ordering via a {@link
       * Comparator}, which can violate the natural ordering. Using this method (or in general using
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterators.java

      }
    
      /**
       * Returns an iterator containing only {@code value}.
       *
       * <p>The {@link Iterable} equivalent of this method is {@link Collections#singleton}.
       */
      public static <T extends @Nullable Object> UnmodifiableIterator<T> singletonIterator(
          @ParametricNullness T value) {
        if (value != null) {
          return new SingletonIterator<>(value);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

         * @throws NullPointerException if {@code element} is null
         * @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation
         *     would result in more than {@link Integer#MAX_VALUE} occurrences of the element
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> addCopies(E element, int occurrences) {
          checkNotNull(element);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
Back to top