Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,086 for true (0.16 sec)

  1. guava-tests/test/com/google/common/base/PredicatesTest.java

        assertEvalsToFalse(Predicates.and(TRUE, FALSE, NEVER_REACHED));
      }
    
      public void testAnd_equalityTernary() {
        new EqualsTester()
            .addEqualityGroup(
                Predicates.and(TRUE, isOdd(), NEVER_REACHED),
                Predicates.and(TRUE, isOdd(), NEVER_REACHED))
            .addEqualityGroup(Predicates.and(isOdd(), NEVER_REACHED, TRUE))
            .addEqualityGroup(Predicates.and(TRUE))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        testThreshold(0, 100, true, true);
        testThreshold(10, 100, true, true);
        testThreshold(100, 100, true, true);
        testThreshold(1000, 100, true, true);
        testThreshold(0, 100, false, true);
        testThreshold(10, 100, false, true);
        testThreshold(100, 100, false, true);
        testThreshold(1000, 100, false, true);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Predicates.java

     * @since 2.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Predicates {
      private Predicates() {}
    
      // TODO(kevinb): considering having these implement a VisitablePredicate
      // interface which specifies an accept(PredicateVisitor) method.
    
      /** Returns a predicate that always evaluates to {@code true}. */
      @GwtCompatible(serializable = true)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/GraphsTest.java

        MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(true).build();
        directedGraph.putEdge(N1, N3);
        directedGraph.putEdge(N3, N1);
        directedGraph.putEdge(N1, N2);
        directedGraph.putEdge(N1, N1);
        directedGraph.putEdge(N3, N4);
    
        MutableGraph<Integer> expectedTranspose = GraphBuilder.directed().allowsSelfLoops(true).build();
        expectedTranspose.putEdge(N3, N1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Equivalence.java

        }
    
        /**
         * Returns {@code true} if {@link Equivalence#equivalent(Object, Object)} applied to the wrapped
         * references is {@code true} and both wrappers use the {@link Object#equals(Object) same}
         * equivalence.
         */
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj == this) {
            return true;
          }
          if (obj instanceof Wrapper) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Equivalence.java

        }
    
        /**
         * Returns {@code true} if {@link Equivalence#equivalent(Object, Object)} applied to the wrapped
         * references is {@code true} and both wrappers use the {@link Object#equals(Object) same}
         * equivalence.
         */
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj == this) {
            return true;
          }
          if (obj instanceof Wrapper) {
    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)
  7. android/guava/src/com/google/common/primitives/Booleans.java

       * @param b the second {@code boolean} to compare
       * @return a positive number if only {@code a} is {@code true}, a negative number if only {@code
       *     b} is true, or zero if {@code a == b}
       */
      public static int compare(boolean a, boolean b) {
        return (a == b) ? 0 : (a ? 1 : -1);
      }
    
      /**
       * Returns {@code true} if {@code target} is present as an element anywhere in {@code array}.
       *
    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)
  8. android/guava/src/com/google/common/reflect/Invokable.java

        return member.isSynthetic();
      }
    
      /** Returns true if the element is public. */
      public final boolean isPublic() {
        return Modifier.isPublic(getModifiers());
      }
    
      /** Returns true if the element is protected. */
      public final boolean isProtected() {
        return Modifier.isProtected(getModifiers());
      }
    
      /** Returns true if the element is package-private. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/TreeBasedTableRowTest.java

    import com.google.common.collect.TableCollectionTest.RowTests;
    
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class TreeBasedTableRowTest extends RowTests {
      public TreeBasedTableRowTest() {
        super(false, true, true, true, true);
      }
    
      @Override
      Table<Character, String, Integer> makeTable() {
        return TreeBasedTable.create();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

      public long addAndGet(K key, long delta) {
        outer:
        while (true) {
          AtomicLong atomic = map.get(key);
          if (atomic == null) {
            atomic = map.putIfAbsent(key, new AtomicLong(delta));
            if (atomic == null) {
              return delta;
            }
            // atomic is now non-null; fall through
          }
    
          while (true) {
            long oldValue = atomic.get();
            if (oldValue == 0L) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top