Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 195 for needed (0.66 sec)

  1. android/guava/src/com/google/common/escape/CharEscaper.java

        int lastEscape = 0;
    
        // Loop through the rest of the string, replacing when needed into the
        // destination buffer, which gets grown as needed as well.
        for (; index < slen; index++) {
    
          // Get a replacement for the current character.
          char[] r = escape(s.charAt(index));
    
          // If no replacement is needed, just continue.
          if (r == null) {
            continue;
          }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java

          return this.value == that.value;
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        throw new UnsupportedOperationException();
      }
    
      // needed because otherwise Object.toString() calls hashCode()
      @Override
      public String toString() {
        return "DontHashMe" + value;
      }
    
      @Override
      public int compareTo(UnhashableObject o) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 20 11:19:03 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/Platform.java

      /**
       * A thread-local destination buffer to keep us from creating new buffers. The starting size is
       * 1024 characters. If we grow past this we don't put it back in the threadlocal, we just keep
       * going and grow as needed.
       */
      private static final ThreadLocal<char[]> DEST_TL =
          new ThreadLocal<char[]>() {
            @Override
            protected char[] initialValue() {
              return new char[1024];
            }
          };
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/Escapers.java

       * to its public interface.
       *
       * @param c the character to escape if necessary
       * @return the replacement string, or {@code null} if no escaping was needed
       */
      @CheckForNull
      public static String computeReplacement(CharEscaper escaper, char c) {
        return stringOrNull(escaper.escape(c));
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/AbstractSortedMultiset.java

    @ElementTypesAreNonnullByDefault
    abstract class AbstractSortedMultiset<E extends @Nullable Object> extends AbstractMultiset<E>
        implements SortedMultiset<E> {
      @GwtTransient final Comparator<? super E> comparator;
    
      // needed for serialization
      @SuppressWarnings("unchecked")
      AbstractSortedMultiset() {
        this((Comparator) Ordering.natural());
      }
    
      AbstractSortedMultiset(Comparator<? super E> comparator) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/IoTestCase.java

          }
        }
    
        if (testDir == null) {
          // testdata resources aren't file:// urls, so create a directory to store them in and then
          // copy the resources to the filesystem as needed
          testDir = createTempDir();
        }
    
        return testDir;
      }
    
      /** Returns the file with the given name under the testdata directory. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ArrayListMultimap.java

        Map<K, Collection<V>> map = Maps.newHashMap();
        setMap(map);
        Serialization.populateMultimap(this, stream, distinctKeys);
      }
    
      @GwtIncompatible // Not needed in emulated source.
      @J2ktIncompatible
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

            b = entries.get(1);
            c = entries.get(2);
          }
        }
      }
    
      /** Resets the contents of navigableMap to have entries a, c, for the navigation tests. */
      @SuppressWarnings("unchecked") // Needed to stop Eclipse whining
      private void resetWithHole() {
        Entry<K, V>[] entries = (Entry<K, V>[]) new Entry<?, ?>[] {a, c};
        super.resetMap(entries);
        navigableMap = (NavigableMap<K, V>) getMap();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/EnumMultiset.java

        type = localType;
        enumConstants = type.getEnumConstants();
        counts = new int[enumConstants.length];
        Serialization.populateMultiset(this, stream);
      }
    
      @GwtIncompatible // Not needed in emulated source
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

            builder.put(entry.getKey(), value);
          }
          return builder.buildOrThrow().asMultimap().asMap();
        }
    
        @Override
        @SuppressWarnings({"unchecked", "rawtypes"}) // needed for arrays
        public Entry<String, Collection<Integer>>[] createArray(int length) {
          return new Entry[length];
        }
    
        @Override
        public Iterable<Entry<String, Collection<Integer>>> order(
    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)
Back to top