Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 55 for Knight (0.17 sec)

  1. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            a full-time Guava team member. [Feedback](https://stackoverflow.com/a/4543114) from our
            users indicates that they really appreciate Guava's high power-to-weight ratio. It's
            important to us to keep Guava as easy to use and understand as we can. That means boiling
            features down to compact but powerful abstractions, and controlling feature bloat carefully.
    
    
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/TestingWeighers.java

        return new ConstantWeigher(constant);
      }
    
      /** Returns a {@link Weigher} that uses the integer key as the weight. */
      static Weigher<Integer, Object> intKeyWeigher() {
        return new IntKeyWeigher();
      }
    
      /** Returns a {@link Weigher} that uses the integer value as the weight. */
      static Weigher<Object, Integer> intValueWeigher() {
        return new IntValueWeigher();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/NaturalOrdering.java

      @LazyInit @CheckForNull private transient Ordering<@Nullable Comparable<?>> nullsLast;
    
      @Override
      public int compare(Comparable<?> left, Comparable<?> right) {
        checkNotNull(left); // for GWT
        checkNotNull(right);
        return ((Comparable<Object>) left).compareTo(right);
      }
    
      @Override
      public <S extends Comparable<?>> Ordering<@Nullable S> nullsFirst() {
        Ordering<@Nullable Comparable<?>> result = nullsFirst;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Float[] concat(Float[] left, Float[] right) {
        Float[] result = new Float[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestFloatListGenerator implements TestListGenerator<Float> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/SerializableTester.java

       * be declared as a {@code List}.
       *
       * <p>Note also that serialization is not in general required to return an object that is
       * {@linkplain Object#equals equal} to the original, nor is it required to return even an object
       * of the same class. For example, if sublists of {@code MyList} instances were serializable,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeParameter.java

    /*
     * A nullable bound would let users create a TypeParameter instance for a parameter with a nullable
     * bound. However, it would also let them create `new TypeParameter<@Nullable T>() {}`, which
     * wouldn't behave as users might expect. Additionally, it's not clear how the TypeToken API could
     * support even a "normal" `TypeParameter<T>` when `<T>` has a nullable bound. (See the discussion
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AllEqualOrdering.java

      static final AllEqualOrdering INSTANCE = new AllEqualOrdering();
    
      @Override
      public int compare(@CheckForNull Object left, @CheckForNull Object right) {
        return 0;
      }
    
      @Override
      public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) {
        return Lists.newArrayList(iterable);
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 27 16:03:47 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AllEqualOrdering.java

      static final AllEqualOrdering INSTANCE = new AllEqualOrdering();
    
      @Override
      public int compare(@CheckForNull Object left, @CheckForNull Object right) {
        return 0;
      }
    
      @Override
      public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) {
        return Lists.newArrayList(iterable);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 27 16:03:47 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

        assertEquals(20, counter.skip(30));
        assertEquals(20, counter.getCount());
        assertEquals(0, counter.skip(20));
        assertEquals(20, counter.getCount());
    
        // Test reading a single byte while we're in the right state
        assertEquals(-1, counter.read());
        assertEquals(20, counter.getCount());
      }
    
      public void testReadArrayEOF() throws IOException {
        assertEquals(20, counter.read(new byte[30]));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMapEntry.java

         * do that with a plain NonTerminalImmutableMapEntry, but we do it with the BiMap-specific
         * subclass below. That's because the Entry might be non-terminal in the key bucket but terminal
         * in the value bucket (or vice versa).
         */
        @CheckForNull private final transient ImmutableMapEntry<K, V> nextInKeyBucket;
    
        NonTerminalImmutableMapEntry(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top