Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for checkedList (0.06 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                    List<String> innerList = new ArrayList<>();
                    Collections.addAll(innerList, elements);
                    return Collections.checkedList(innerList, String.class);
                  }
                })
            .named("checkedList/ArrayList")
            .withFeatures(
                ListFeature.GENERAL_PURPOSE,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.RESTRICTS_ELEMENTS,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                    List<String> innerList = new ArrayList<>();
                    Collections.addAll(innerList, elements);
                    return Collections.checkedList(innerList, String.class);
                  }
                })
            .named("checkedList/ArrayList")
            .withFeatures(
                ListFeature.GENERAL_PURPOSE,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.RESTRICTS_ELEMENTS,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

              }
              assertTrue(Ordering.from(comparator).isOrdered(resultsForStrategy));
            }
            if ((characteristics & Spliterator.SIZED) != 0) {
              assertEquals(Ints.checkedCast(estimatedSize), resultsForStrategy.size());
            }
    
            assertEqualIgnoringOrder(elements, resultsForStrategy);
            resultsForAllStrategies.add(resultsForStrategy);
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

              }
              assertTrue(Ordering.from(comparator).isOrdered(resultsForStrategy));
            }
            if ((characteristics & Spliterator.SIZED) != 0) {
              assertEquals(Ints.checkedCast(estimatedSize), resultsForStrategy.size());
            }
    
            assertEqualIgnoringOrder(elements, resultsForStrategy);
            resultsForAllStrategies.add(resultsForStrategy);
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * @throws IllegalArgumentException if {@code value} is negative or greater than or equal to
       *     2<sup>32</sup>
       * @since 21.0
       */
      public static int checkedCast(long value) {
        checkArgument((value >> Integer.SIZE) == 0, "out of range: %s", value);
        return (int) value;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/UnsignedInts.java

       * @throws IllegalArgumentException if {@code value} is negative or greater than or equal to
       *     2<sup>32</sup>
       * @since 21.0
       */
      public static int checkedCast(long value) {
        checkArgument((value >> Integer.SIZE) == 0, "out of range: %s", value);
        return (int) value;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Ints.java

       * @throws IllegalArgumentException if {@code value} is greater than {@link Integer#MAX_VALUE} or
       *     less than {@link Integer#MIN_VALUE}
       */
      public static int checkedCast(long value) {
        int result = (int) value;
        checkArgument(result == value, "Out of range: %s", value);
        return result;
      }
    
      /**
       * Returns the {@code int} nearest in value to {@code value}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top