Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for none (0.15 sec)

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

      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Boolean> none = Arrays.<Boolean>asList();
        assertThat(Booleans.toArray(none)).isEqualTo(EMPTY);
    
        List<Boolean> one = Arrays.asList(false);
        assertThat(Booleans.toArray(one)).isEqualTo(ARRAY_FALSE);
    
        boolean[] array = {false, false, true};
    
        List<Boolean> three = Arrays.asList(false, false, true);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Boolean> none = Arrays.<Boolean>asList();
        assertThat(Booleans.toArray(none)).isEqualTo(EMPTY);
    
        List<Boolean> one = Arrays.asList(false);
        assertThat(Booleans.toArray(one)).isEqualTo(ARRAY_FALSE);
    
        boolean[] array = {false, false, true};
    
        List<Boolean> three = Arrays.asList(false, false, true);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Short> none = Arrays.<Short>asList();
        assertThat(Shorts.toArray(none)).isEqualTo(EMPTY);
    
        List<Short> one = Arrays.asList((short) 1);
        assertThat(Shorts.toArray(one)).isEqualTo(ARRAY1);
    
        short[] array = {(short) 0, (short) 1, (short) 3};
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Float> none = Arrays.<Float>asList();
        assertThat(Floats.toArray(none)).isEqualTo(EMPTY);
    
        List<Float> one = Arrays.asList((float) 1);
        assertThat(Floats.toArray(one)).isEqualTo(ARRAY1);
    
        float[] array = {(float) 0, (float) 1, (float) 3};
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                    return Collections.unmodifiableSet(innerSet);
                  }
                })
            .named("unmodifiableSet/HashSet")
            .withFeatures(
                CollectionFeature.NONE,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
                CollectionSize.ANY)
            .suppressing(suppressForUnmodifiableSet())
            .createTestSuite();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      public void testImmutableEnumSet_fromIterable() {
        ImmutableSet<SomeEnum> none = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of());
        assertThat(none).isEmpty();
    
        ImmutableSet<SomeEnum> one = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B));
        assertThat(one).contains(SomeEnum.B);
    
        ImmutableSet<SomeEnum> two = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.D, SomeEnum.B));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterables.java

        return Iterators.find(iterable.iterator(), predicate);
      }
    
      /**
       * Returns the first element in {@code iterable} that satisfies the given predicate, or {@code
       * defaultValue} if none found. Note that this can usually be handled more naturally using {@code
       * tryFind(iterable, predicate).or(defaultValue)}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MoreCollectors.java

       *
       * @throws IllegalArgumentException if the stream consists of two or more elements.
       * @throws NullPointerException if any element in the stream is {@code null}.
       * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be
       *     {@code null}) and returns {@code Optional.empty()} if it has none.
       */
      @SuppressWarnings("unchecked")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Double> none = Arrays.<Double>asList();
        assertThat(Doubles.toArray(none)).isEqualTo(EMPTY);
    
        List<Double> one = Arrays.asList((double) 1);
        assertThat(Doubles.toArray(one)).isEqualTo(ARRAY1);
    
        double[] array = {(double) 0, (double) 1, Math.PI};
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Double> none = Arrays.<Double>asList();
        assertThat(Doubles.toArray(none)).isEqualTo(EMPTY);
    
        List<Double> one = Arrays.asList((double) 1);
        assertThat(Doubles.toArray(one)).isEqualTo(ARRAY1);
    
        double[] array = {(double) 0, (double) 1, Math.PI};
    
    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)
Back to top