Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 8,503 for copyOf (0.09 sec)

  1. android/guava/src/com/google/common/primitives/Chars.java

        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
        return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array;
      }
    
      /**
       * Returns a string containing the supplied {@code char} values separated by {@code separator}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Shorts.java

        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
        return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array;
      }
    
      /**
       * Returns a string containing the supplied {@code short} values separated by {@code separator}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Shorts.java

        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
        return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array;
      }
    
      /**
       * Returns a string containing the supplied {@code short} values separated by {@code separator}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Bytes.java

        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
        return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array;
      }
    
      /**
       * Returns an array containing each value of {@code collection}, converted to a {@code byte} value
       * in the manner of {@link Number#byteValue}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      private static final class Signature {
        private final String name;
        private final ImmutableList<Class<?>> parameterTypes;
    
        Signature(Method method) {
          this(method.getName(), ImmutableList.copyOf(method.getParameterTypes()));
        }
    
        Signature(String name, ImmutableList<Class<?>> parameterTypes) {
          this.name = name;
          this.parameterTypes = parameterTypes;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        INFINITE(Timeout.LARGE, Timeout.MAX);
    
        final ImmutableList<Timeout> timeouts;
    
        TimeoutsToUse(Timeout... timeouts) {
          this.timeouts = ImmutableList.copyOf(timeouts);
        }
      }
    
      /** Possible outcomes of calling any of the methods under test. */
      private enum Outcome {
    
        /** The method returned normally and is either void or returned true. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/InternetDomainName.java

          name = name.substring(0, name.length() - 1);
        }
    
        checkArgument(name.length() <= MAX_LENGTH, "Domain name too long: '%s':", name);
        this.name = name;
    
        this.parts = ImmutableList.copyOf(DOT_SPLITTER.split(name));
        checkArgument(parts.size() <= MAX_PARTS, "Domain has too many parts: '%s'", name);
        checkArgument(validateSyntax(parts), "Not a valid domain name: '%s'", name);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        }
      }
    
      @CanIgnoreReturnValue
      private static <T> T reserialize(T object) {
        T copy = SerializableTester.reserialize(object);
        new EqualsTester().addEqualityGroup(object, copy).testEquals();
        return copy;
      }
    
      public void testTypeResolutionAfterReserialized() {
        reserialize(new TypeToken<String>() {});
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashTestUtils.java

        // Hash keys of the form {}, {0}, {0,1}, {0,1,2}... up to N=255,using 256-N as the seed
        for (int i = 0; i < 256; i++) {
          key[i] = (byte) i;
          int seed = 256 - i;
          byte[] hash = hashFunction.hash(Arrays.copyOf(key, i), seed);
          System.arraycopy(hash, 0, hashes, i * hashBytes, hash.length);
        }
    
        // Then hash the result array
        byte[] result = hashFunction.hash(hashes, 0);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/reflect/TypeResolver.java

          checkNotNull(contextType);
          TypeMappingIntrospector introspector = new TypeMappingIntrospector();
          introspector.visit(contextType);
          return ImmutableMap.copyOf(introspector.mappings);
        }
    
        @Override
        void visitClass(Class<?> clazz) {
          visit(clazz.getGenericSuperclass());
          visit(clazz.getGenericInterfaces());
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
Back to top