Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Length (0.33 sec)

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

                      @Override
                      protected Set<AnEnum> create(AnEnum[] elements) {
                        AnEnum[] otherElements = new AnEnum[elements.length - 1];
                        System.arraycopy(elements, 1, otherElements, 0, otherElements.length);
                        return Sets.immutableEnumSet(elements[0], otherElements);
                      }
                    })
                .named("Sets.immutableEnumSet")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/CharMatcher.java

        }
    
        @Override
        public int indexIn(CharSequence sequence) {
          return (sequence.length() == 0) ? -1 : 0;
        }
    
        @Override
        public int indexIn(CharSequence sequence, int start) {
          int length = sequence.length();
          checkPositionIndex(start, length);
          return (start == length) ? -1 : start;
        }
    
        @Override
        public int lastIndexIn(CharSequence sequence) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTest.java

      private static final Function<String, Integer> LENGTH_FUNCTION =
          new Function<String, Integer>() {
            @Override
            public Integer apply(String input) {
              return input.length();
            }
          };
    
      public void testAsMap() {
        Set<String> strings = ImmutableSet.of("one", "two", "three");
        Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MapsTest.java

      private static final Function<String, Integer> LENGTH_FUNCTION =
          new Function<String, Integer>() {
            @Override
            public Integer apply(String input) {
              return input.length();
            }
          };
    
      public void testAsMap() {
        Set<String> strings = ImmutableSet.of("one", "two", "three");
        Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/CharMatcher.java

        }
    
        @Override
        public int indexIn(CharSequence sequence) {
          return (sequence.length() == 0) ? -1 : 0;
        }
    
        @Override
        public int indexIn(CharSequence sequence, int start) {
          int length = sequence.length();
          checkPositionIndex(start, length);
          return (start == length) ? -1 : start;
        }
    
        @Override
        public int lastIndexIn(CharSequence sequence) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        boolean containsValue(Object value) {
          try {
            if (count != 0) { // read-volatile
              AtomicReferenceArray<E> table = this.table;
              int length = table.length();
              for (int i = 0; i < length; ++i) {
                for (E e = table.get(i); e != null; e = e.getNext()) {
                  V entryValue = getLiveValue(e);
                  if (entryValue == null) {
                    continue;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          this.values = new @Nullable Object[initialCapacity];
        }
    
        private void ensureCapacity(int minCapacity) {
          if (minCapacity > keys.length) {
            int newCapacity = ImmutableCollection.Builder.expandedCapacity(keys.length, minCapacity);
            this.keys = Arrays.copyOf(keys, newCapacity);
            this.values = Arrays.copyOf(values, newCapacity);
          }
        }
    
        /**
    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)
  8. guava/src/com/google/common/cache/CacheBuilder.java

       * write operations. Expired entries are cleaned up as part of the routine maintenance described
       * in the class javadoc.
       *
       * @param duration the length of time after an entry is created that it should be automatically
       *     removed
       * @return this {@code CacheBuilder} instance (for chaining)
       * @throws IllegalArgumentException if {@code duration} is negative
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeToken.java

        // return subclass as a raw type
        if (runtimeType instanceof Class
            && ((subclass.getTypeParameters().length == 0)
                || (getRawType().getTypeParameters().length != 0))) {
          // no resolution needed
          return subclass;
        }
        // class Base<A, B> {}
        // class Sub<X, Y> extends Base<X, Y> {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private void addPendingString(StringBuilder builder) {
        // Capture current builder length so it can be truncated if this future ends up completing while
        // the toString is being calculated
        int truncateLength = builder.length();
    
        builder.append("PENDING");
    
        Object localValue = value;
        if (localValue instanceof SetFuture) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
Back to top