Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 321 for equalTo (6.08 sec)

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

            Iterators.removeIf(
                list.iterator(),
                new Predicate<String>() {
                  @Override
                  public boolean apply(String s) {
                    return s.equals("b") || s.equals("d") || s.equals("f");
                  }
                }));
        assertEquals(newArrayList("a", "c", "e"), list);
        assertFalse(
            Iterators.removeIf(
                list.iterator(),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Types.java

        }
    
        @Override
        public boolean equals(@CheckForNull Object other) {
          if (!(other instanceof ParameterizedType)) {
            return false;
          }
          ParameterizedType that = (ParameterizedType) other;
          return getRawType().equals(that.getRawType())
              && Objects.equal(getOwnerType(), that.getOwnerType())
              && Arrays.equals(getActualTypeArguments(), that.getActualTypeArguments());
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Function.java

       *
       * <ul>
       *   <li>Its execution does not cause any observable side effects.
       *   <li>The computation is <i>consistent with equals</i>; that is, {@link Objects#equal
       *       Objects.equal}{@code (a, b)} implies that {@code Objects.equal(function.apply(a),
       *       function.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this function does not accept null
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Equivalence.java

      public static Equivalence<Object> identity() {
        return Identity.INSTANCE;
      }
    
      static final class Equals extends Equivalence<Object> implements Serializable {
    
        static final Equals INSTANCE = new Equals();
    
        @Override
        protected boolean doEquivalent(Object a, Object b) {
          return a.equals(b);
        }
    
        @Override
        protected int doHash(Object o) {
          return o.hashCode();
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSet.java

       * the first are ignored.
       */
      public static <E> ImmutableSet<E> of(E e1, E e2) {
        return construct(2, e1, e2);
      }
    
      /**
       * Returns an immutable set containing the given elements, minus duplicates, in the order each was
       * first specified. That is, if multiple elements are {@linkplain Object#equals equal}, all except
       * the first are ignored.
       */
    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)
  6. cmd/erasure-metadata.go

    	for k, v := range m {
    		switch {
    		case equals(k, ReservedMetadataPrefixLower+ReplicationTimestamp):
    			d.ReplicaTimeStamp, _ = amztime.ParseReplicationTS(v)
    		case equals(k, ReservedMetadataPrefixLower+ReplicaTimestamp):
    			d.ReplicaTimeStamp, _ = amztime.ParseReplicationTS(v)
    		case equals(k, ReservedMetadataPrefixLower+ReplicaStatus):
    			d.ReplicaStatus = replication.StatusType(v)
    		case equals(k, ReservedMetadataPrefixLower+ReplicationStatus):
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/collect/Multisets.java

      }
    
      /**
       * Implementation of the {@code equals}, {@code hashCode}, and {@code toString} methods of {@link
       * Multiset.Entry}.
       */
      abstract static class AbstractEntry<E extends @Nullable Object> implements Multiset.Entry<E> {
        /**
         * Indicates whether an object equals this entry, following the behavior specified in {@link
         * Multiset.Entry#equals}.
         */
        @Override
    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)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

     * Comparator} or {@link Comparable} type whose comparison behavior is <i>inconsistent with
     * equals</i>. That is, {@code a.compareTo(b)} or {@code comparator.compare(a, b)} should equal zero
     * <i>if and only if</i> {@code a.equals(b)}. If this advice is not followed, the resulting map will
     * not correctly obey its specification.
     *
     * <p>See the Guava User Guide article on <a href=
    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)
  9. android/guava/src/com/google/common/collect/Ordering.java

        return checkNotNull(ordering);
      }
    
      /**
       * Returns an ordering that compares objects according to the order in which they appear in the
       * given list. Only objects present in the list (according to {@link Object#equals}) may be
       * compared. This comparator imposes a "partial ordering" over the type {@code T}. Subsequent
       * changes to the {@code valuesInOrder} list will have no effect on the returned comparator. Null
    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/Maps.java

         * <ul>
         *   <li>Its execution does not cause any observable side effects.
         *   <li>The computation is <i>consistent with equals</i>; that is, {@link Objects#equal
         *       Objects.equal}{@code (k1, k2) &&} {@link Objects#equal}{@code (v1, v2)} implies that
         *       {@code Objects.equal(transformer.transform(k1, v1), transformer.transform(k2, v2))}.
         * </ul>
         *
    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)
Back to top