Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for InvalidatableSet (0.46 sec)

  1. android/guava/src/com/google/common/graph/InvalidatableSet.java

     */
    final class InvalidatableSet<E> extends ForwardingSet<E> {
      private final Supplier<Boolean> validator;
      private final Set<E> delegate;
      private final Supplier<String> errorMessage;
    
      static <E> InvalidatableSet<E> of(
          Set<E> delegate, Supplier<Boolean> validator, Supplier<String> errorMessage) {
        return new InvalidatableSet<>(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

      Set<Integer> wrappedSet;
      Set<Integer> copyOfWrappedSet;
      InvalidatableSet<Integer> setToTest;
    
      @Before
      public void createSets() {
        wrappedSet = new HashSet<>();
        wrappedSet.add(1);
        wrappedSet.add(2);
        wrappedSet.add(3);
    
        copyOfWrappedSet = ImmutableSet.copyOf(wrappedSet);
        setToTest =
            InvalidatableSet.of(wrappedSet, () -> wrappedSet.contains(1), () -> 1 + "is not present");
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top