Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 190 for Wong (0.15 sec)

  1. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
        List<Integer> ints = Arrays.asList(0, 1, 2);
        List<Float> floats = Arrays.asList((float) 0, (float) 1, (float) 2);
        List<Long> longs = Arrays.asList((long) 0, (long) 1, (long) 2);
        List<Double> doubles = Arrays.asList((double) 0, (double) 1, (double) 2);
    
        assertThat(Doubles.toArray(bytes)).isEqualTo(array);
        assertThat(Doubles.toArray(shorts)).isEqualTo(array);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Converter.java

     * supertype of `Function<A, B>` turns out to be massively more useful to callers in practice: They
     * want their output to be non-null in operations like `stream.map(myConverter)`, and we can
     * guarantee that as long as we also require the input type to be non-null[*] (which is a
     * requirement that existing callers already fulfill).
     *
     * Disclaimer: Part of the reason that callers are so well adapted to `Function<A, B>` may be that
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Lists.java

                @J2ktIncompatible private static final long serialVersionUID = 0;
              };
        } else {
          wrapper =
              new AbstractListWrapper<E>(list) {
                @Override
                public ListIterator<E> listIterator(int index) {
                  return backingList.listIterator(index);
                }
    
                @J2ktIncompatible private static final long serialVersionUID = 0;
              };
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/IntMathTest.java

    public class IntMathTest extends TestCase {
      public void testMaxSignedPowerOfTwo() {
        assertTrue(IntMath.isPowerOfTwo(IntMath.MAX_SIGNED_POWER_OF_TWO));
    
        // Extra work required to make GWT happy.
        long value = IntMath.MAX_SIGNED_POWER_OF_TWO * 2L;
        assertFalse(IntMath.isPowerOfTwo((int) value));
      }
    
      public void testCeilingPowerOfTwo() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

        }
    
        private static final long serialVersionUID = 0;
      }
    
      Object writeReplace() {
        return new SerializedForm<>(asMapOfRanges());
      }
    
      @J2ktIncompatible // java.io.ObjectInputStream
      private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use SerializedForm");
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

          }
        }
    
        private static final long serialVersionUID = 0;
      }
    
      private static final class UnknownElementException extends RuntimeException {
        private UnknownElementException(Collection<?> expected, Object actual) {
          super("Returned value '" + actual + "' not found. Remaining elements: " + expected);
        }
    
        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
    - 20.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * undefined which (if any) of these modifications will be reflected in the result.
       */
      @Override
      public int size() {
        long sum = 0L;
        for (AtomicInteger value : countMap.values()) {
          sum += value.get();
        }
        return Ints.saturatedCast(sum);
      }
    
      /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSet.java

        SerializedForm(Object[] elements) {
          this.elements = elements;
        }
    
        Object readResolve() {
          return copyOf(elements);
        }
    
        private static final long serialVersionUID = 0;
      }
    
      @Override
      @J2ktIncompatible // serialization
      Object writeReplace() {
        return new SerializedForm(toArray());
      }
    
      @J2ktIncompatible // serialization
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      public void testNewParameterizedTypeWithWrongNumberOfTypeArguments() {
        assertThrows(
            IllegalArgumentException.class,
            () -> Types.newParameterizedType(Map.class, String.class, Integer.class, Long.class));
      }
    
      public void testToString() {
        assertEquals(int[].class.getName(), Types.toString(int[].class));
        assertEquals(int[][].class.getName(), Types.toString(int[][].class));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/BaseEncoding.java

          checkNotNull(target);
          checkPositionIndexes(off, off + len, bytes.length);
          checkArgument(len <= alphabet.bytesPerChunk);
          long bitBuffer = 0;
          for (int i = 0; i < len; ++i) {
            bitBuffer |= bytes[off + i] & 0xFF;
            bitBuffer <<= 8; // Add additional zero byte in the end.
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
Back to top