Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 194 for Input (0.27 sec)

  1. guava-tests/test/com/google/common/base/OptionalTest.java

                      (Function<String, String>)
                          new Function<String, @Nullable String>() {
                            @Override
                            public @Nullable String apply(String input) {
                              return null;
                            }
                          });
          fail("Should throw if Function returns null.");
        } catch (NullPointerException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingTest.java

      }
    
      public void testHashIntReverseBytesVsHashBytesIntsToByteArray() {
        int input = 42;
        assertEquals(
            Hashing.md5().hashBytes(Ints.toByteArray(input)),
            Hashing.md5().hashInt(Integer.reverseBytes(input)));
      }
    
      public void testHashIntVsForLoop() {
        int input = 42;
        HashCode expected = Hashing.md5().hashInt(input);
    
        Hasher hasher = Hashing.md5().newHasher();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableList.java

    @ElementTypesAreNonnullByDefault
    public abstract class ImmutableList<E> extends ImmutableCollection<E>
        implements List<E>, RandomAccess {
    
      /**
       * Returns a {@code Collector} that accumulates the input elements into a new {@code
       * ImmutableList}, in encounter order.
       *
       * @since 21.0
       */
      public static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() {
        return CollectCollectors.toImmutableList();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/base/Ascii.java

       */
      public static final char MAX = 127;
    
      /** A bit mask which selects the bit encoding ASCII character case. */
      private static final char CASE_MASK = 0x20;
    
      /**
       * Returns a copy of the input string in which all {@linkplain #isUpperCase(char) uppercase ASCII
       * characters} have been converted to lowercase. All other characters are copied without
       * modification.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Joiner.java

       *       {@code MapJoiner} method that accepts entries as input, and receive output of the form
       *       {@code key1=A&key1=B&key2=C}.
       *   <li>To output a single entry for each key, pass {@code multimap.asMap()} to a {@code
       *       MapJoiner} method that accepts a map as input, and receive output of the form {@code
       *       key1=[A, B]&key2=C}.
       * </ul>
       *
       * @since 2.0
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CollectCollectors.java

        checkNotNull(keyFunction);
        checkNotNull(valuesFunction);
        return collectingAndThen(
            flatteningToMultimap(
                input -> checkNotNull(keyFunction.apply(input)),
                input -> valuesFunction.apply(input).peek(Preconditions::checkNotNull),
                MultimapBuilder.linkedHashKeys().arrayListValues()::<K, V>build),
            ImmutableListMultimap::copyOf);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CollectCollectors.java

        checkNotNull(keyFunction);
        checkNotNull(valuesFunction);
        return collectingAndThen(
            flatteningToMultimap(
                input -> checkNotNull(keyFunction.apply(input)),
                input -> valuesFunction.apply(input).peek(Preconditions::checkNotNull),
                MultimapBuilder.linkedHashKeys().arrayListValues()::<K, V>build),
            ImmutableListMultimap::copyOf);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/DiscreteDomain.java

      /**
       * Returns the minimum value of type {@code C}, if it has one. The minimum value is the unique
       * value for which {@link Comparable#compareTo(Object)} never returns a positive value for any
       * input of type {@code C}.
       *
       * <p>The default implementation throws {@code NoSuchElementException}.
       *
       * @return the minimum value of type {@code C}; never null
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      }
    
      static void testSort(byte[] input, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedBytes.sort(input);
        assertThat(input).isEqualTo(expected);
      }
    
      static void testSort(byte[] input, int from, int to, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedBytes.sort(input, from, to);
        assertThat(input).isEqualTo(expected);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteStreams.java

      private static class ByteArrayDataInputStream implements ByteArrayDataInput {
        final DataInput input;
    
        ByteArrayDataInputStream(ByteArrayInputStream byteArrayInputStream) {
          this.input = new DataInputStream(byteArrayInputStream);
        }
    
        @Override
        public void readFully(byte b[]) {
          try {
            input.readFully(b);
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
Back to top