Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 59 for Potter (0.2 sec)

  1. android/guava/src/com/google/common/io/Resources.java

       *
       * @throws IllegalArgumentException if the resource is not found
       */
      @CanIgnoreReturnValue // being used to check if a resource exists
      // TODO(cgdecker): maybe add a better way to check if a resource exists
      // e.g. Optional<URL> tryGetResource or boolean resourceExists
      public static URL getResource(String resourceName) {
        ClassLoader loader =
            MoreObjects.firstNonNull(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SpecialRandom.java

    import java.util.Random;
    
    /**
     * Utility class for being able to seed a {@link Random} value with a passed in seed from a
     * benchmark parameter.
     *
     * <p>TODO: Remove this class once Caliper has a better way.
     *
     * @author Nicholaus Shupe
     */
    public final class SpecialRandom extends Random {
      public static SpecialRandom valueOf(String s) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SpecialRandom.java

    import java.util.Random;
    
    /**
     * Utility class for being able to seed a {@link Random} value with a passed in seed from a
     * benchmark parameter.
     *
     * <p>TODO: Remove this class once Caliper has a better way.
     *
     * @author Nicholaus Shupe
     */
    public final class SpecialRandom extends Random {
      public static SpecialRandom valueOf(String s) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/WinError.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.smb1;
    
    public interface WinError {
    
        /* Don't bother to edit this. Everthing within the interface
         * block is automatically generated from the ntstatus package.
         */
    
        public static final int ERROR_SUCCESS = 0;
        public static final int ERROR_ACCESS_DENIED = 5;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 2.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedAsList.java

      /*
       * TODO(cpovirk): if we start to override indexOf/lastIndexOf under GWT, we'll want some way to
       * override subList to return an ImmutableSortedAsList for better performance. Right now, I'm not
       * sure there's any performance hit from our failure to override subListUnchecked under GWT
       */
      @Override
      ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/AbstractSortedMultiset.java

     *
     * <p>The {@link #count} and {@link #size} implementations all iterate across the set returned by
     * {@link Multiset#entrySet()}, as do many methods acting on the set returned by {@link
     * #elementSet()}. Override those methods for better performance.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    abstract class AbstractSortedMultiset<E extends @Nullable Object> extends AbstractMultiset<E>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/EvictingQueue.java

         * have the same nullness as E." Since we can't, we declare it to return nullable elements, and
         * we can override it in our non-null-guaranteeing subtypes to present a better signature to
         * their users.
         *
         * However, the checker *we* use has this special knowledge about `Collection.toArray()` anyway,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/ResourcesTest.java

        assertThat(Resources.toByteArray(resource)).isEqualTo(I18N.getBytes(Charsets.UTF_8));
      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, Charsets.UTF_8));
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

       * This implementation requires O(|N|) time. Classes extending this one may manually keep track of
       * the number of edges as the graph is updated, and override this method for better performance.
       */
      protected long edgeCount() {
        long degreeSum = 0L;
        for (N node : nodes()) {
          degreeSum += degree(node);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

       * characters).
       *
       * @param c the character to escape
       * @return the replacement characters, or {@code null} if no escaping was required
       */
      // TODO(dbeaumont,cpovirk): Rename this something better once refactoring done
      @CheckForNull
      protected abstract char[] escapeUnsafe(char c);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.3K bytes
    - Viewed (0)
Back to top