Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 296 for lengthOf (0.18 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. 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)
  3. guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java

          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Long[] concat(Long[] left, Long[] right) {
        Long[] result = new Long[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

        }
    
        if (slice && bytes.length > 0) {
          // test a random slice() of the ByteSource
          Random random = new Random();
          byte[] expected = factory.getExpected(bytes);
          // if expected.length == 0, off has to be 0 but length doesn't matter--result will be empty
          int off = expected.length == 0 ? 0 : random.nextInt(expected.length);
          int len = expected.length == 0 ? 4 : random.nextInt(expected.length - off);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertEquals(expected.length(), reader.skip(Long.MAX_VALUE));
        assertFullyRead(reader);
    
        // skip 5 and read the rest
        if (expected.length() > 5) {
          reader = new CharSequenceReader(charSequence);
          assertEquals(5, reader.skip(5));
    
          buf = new char[expected.length() - 5];
          assertEquals(buf.length, reader.read(buf, 0, buf.length));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

            if (a.length != b.length) {
              return false;
            }
            boolean areEqual = true;
            for (int i = 0; i < a.length; i++) {
              areEqual &= (a[i] == b[i]);
            }
            return areEqual;
          }
        },
        XORING_TO_BYTE {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
            }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

            if (a.length != b.length) {
              return false;
            }
            boolean areEqual = true;
            for (int i = 0; i < a.length; i++) {
              areEqual &= (a[i] == b[i]);
            }
            return areEqual;
          }
        },
        XORING_TO_BYTE {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

          for (String comp : components) {
            sb.append(comp);
            sb.append(DELIMITER_STRING);
          }
          if (sb.length() > 0) {
            sb.setLength(sb.length() - DELIMITER_STRING.length());
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top