Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 352 for lengthOf (4.71 sec)

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

          if (first == second) {
            return 0;
          } else if (first == null) {
            return -1;
          } else if (second == null) {
            return 1;
          } else if (first.length() != second.length()) {
            return first.length() - second.length();
          } else {
            return first.compareTo(second);
          }
        }
      }
    
      /** Decreasing integer values. A {@code null} comes before any non-null value. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/BooleansTest.java

      }
    
      public void testToArray_threadSafe() {
        // Only for booleans, we lengthen VALUES
        boolean[] VALUES = BooleansTest.VALUES;
        VALUES = Booleans.concat(VALUES, VALUES);
    
        for (int delta : new int[] {+1, 0, -1}) {
          for (int i = 0; i < VALUES.length; i++) {
            List<Boolean> list = Booleans.asList(VALUES).subList(0, i);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

      }
    
      public void testToArray_threadSafe() {
        // Only for booleans, we lengthen VALUES
        boolean[] VALUES = BooleansTest.VALUES;
        VALUES = Booleans.concat(VALUES, VALUES);
    
        for (int delta : new int[] {+1, 0, -1}) {
          for (int i = 0; i < VALUES.length; i++) {
            List<Boolean> list = Booleans.asList(VALUES).subList(0, i);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

        @Override
        public Entry<K, V>[] createArray(int length) {
          return generator.createArray(length);
        }
    
        @Override
        public Iterable<Entry<K, V>> order(List<Entry<K, V>> insertionOrder) {
          return generator.order(insertionOrder);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public K[] createKeyArray(int length) {
          return (K[]) new Object[length];
        }
    
        @SuppressWarnings("unchecked")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/EquivalenceTest.java

          return input.length();
        }
      }
    
      private static final Equivalence<String> LENGTH_EQUIVALENCE =
          Equivalence.equals().onResultOf(LengthFunction.INSTANCE);
    
      public void testWrap() {
        new EqualsTester()
            .addEqualityGroup(
                LENGTH_EQUIVALENCE.wrap("hello"),
                LENGTH_EQUIVALENCE.wrap("hello"),
                LENGTH_EQUIVALENCE.wrap("world"))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java

      public final Entry<String, String>[] createArray(int length) {
        return (Entry<String, String>[]) new Entry<?, ?>[length];
      }
    
      @Override
      public final String[] createKeyArray(int length) {
        return new String[length];
      }
    
      @Override
      public final String[] createValueArray(int length) {
        return new String[length];
      }
    
      /** Returns the original element list, unchanged. */
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        assertTrue(x != y);
        assertEquals(x.length(), y.length());
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(x.get(i), y.get(i));
        }
    
        AtomicDoubleArray a = new AtomicDoubleArray(VALUES);
        AtomicDoubleArray b = serialClone(a);
        assertFalse(a.equals(b));
        assertFalse(b.equals(a));
        assertEquals(a.length(), b.length());
        for (int i = 0; i < VALUES.length; i++) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

          return new Entry[length];
        }
    
        @Override
        public Iterable<Entry<String, Collection<Integer>>> order(
            List<Entry<String, Collection<Integer>>> insertionOrder) {
          return insertionOrder;
        }
    
        @Override
        public String[] createKeyArray(int length) {
          return new String[length];
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                      @Override
                      public Range<Integer>[] createKeyArray(int length) {
                        return (Range<Integer>[]) new Range<?>[length];
                      }
    
                      @Override
                      public String[] createValueArray(int length) {
                        return new String[length];
                      }
                    })
                .named("TreeRangeMap.asMapOfRanges")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                      }
    
                      @Override
                      public String[] createKeyArray(int length) {
                        return new String[length];
                      }
    
                      @Override
                      public Integer[] createValueArray(int length) {
                        return new Integer[length];
                      }
                    })
                .named("Maps.asMap[Set, Function]")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
Back to top