Search Options

Results per page
Sort
Preferred Languages
Advance

Results 571 - 580 of 1,777 for Equals (0.05 sec)

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

        Map<String, Integer> unfiltered = createUnfiltered();
        unfiltered.put("cat", 3);
        unfiltered.put("dog", 2);
        unfiltered.put("horse", 5);
        Predicate<Entry<?, ?>> predicate = e -> e.getKey().equals("cat") || e.getValue().equals(2);
        Map<String, Integer> filtered = Maps.filterEntries(unfiltered, predicate);
        assertEquals(ImmutableMap.of("cat", 3, "dog", 2), filtered);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AllEqualOrdering.java

    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import java.util.List;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An ordering that treats all references as equals, even nulls.
     *
     * @author Emily Soldal
     */
    @GwtCompatible(serializable = true)
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:24:26 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AllEqualOrdering.java

    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import java.util.List;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An ordering that treats all references as equals, even nulls.
     *
     * @author Emily Soldal
     */
    @GwtCompatible(serializable = true)
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:24:26 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/InternetDomainName.java

       * version of the same domain name would not be considered equal.
       */
      @Override
      public boolean equals(@CheckForNull Object object) {
        if (object == this) {
          return true;
        }
    
        if (object instanceof InternetDomainName) {
          InternetDomainName that = (InternetDomainName) object;
          return this.name.equals(that.name);
        }
    
        return false;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Count.java

      public int getAndSet(int newValue) {
        int result = value;
        value = newValue;
        return result;
      }
    
      @Override
      public int hashCode() {
        return value;
      }
    
      @Override
      public boolean equals(@CheckForNull Object obj) {
        return obj instanceof Count && ((Count) obj).value == value;
      }
    
      @Override
      public String toString() {
        return Integer.toString(value);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 05 00:40:25 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Ints.java

       * example, {@code [] < [1] < [1, 2] < [2]}.
       *
       * <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(int[], int[])}.
       *
       * @since 2.0
       */
      public static Comparator<int[]> lexicographicalComparator() {
        return LexicographicalComparator.INSTANCE;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

          this.mutex = mutex;
        }
    
        @Override
        protected Entry<K, V> delegate() {
          return delegate;
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
          assertTrue(Thread.holdsLock(mutex));
          return super.equals(object);
        }
    
        @Override
        public K getKey() {
          assertTrue(Thread.holdsLock(mutex));
          return super.getKey();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ReferencedTypeBuilder.java

        public void build(ClassDoc classDoc) {
            for (PropertyDoc propertyDoc : classDoc.getClassProperties()) {
                String referencedType = propertyDoc.getMetaData().getType().getName();
                if (!referencedType.equals(classDoc.getName())) {
                    model.findClassDoc(referencedType);
                }
            }
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Ordering.java

    import java.util.TreeSet;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.atomic.AtomicInteger;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A comparator, with additional methods to support common operations. This is an "enriched" version
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. okhttp/api/okhttp.api

    	public final fun certificatePinner ()Lokhttp3/CertificatePinner;
    	public final fun connectionSpecs ()Ljava/util/List;
    	public final fun dns ()Lokhttp3/Dns;
    	public fun equals (Ljava/lang/Object;)Z
    	public fun hashCode ()I
    	public final fun hostnameVerifier ()Ljavax/net/ssl/HostnameVerifier;
    	public final fun protocols ()Ljava/util/List;
    	public final fun proxy ()Ljava/net/Proxy;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top