- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for InvalidatableSet (0.11 sec)
-
android/guava/src/com/google/common/graph/InvalidatableSet.java
*/ @ElementTypesAreNonnullByDefault final class InvalidatableSet<E> extends ForwardingSet<E> { private final Supplier<Boolean> validator; private final Set<E> delegate; private final Supplier<String> errorMessage; public static final <E> InvalidatableSet<E> of( Set<E> delegate, Supplier<Boolean> validator, Supplier<String> errorMessage) { return new InvalidatableSet<>(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 1.8K bytes - Viewed (0) -
android/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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 2.2K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 2.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/AbstractNetwork.java
* not present in this network. * * @since 33.1.0 */ protected final <T> Set<T> edgeInvalidatableSet(Set<T> set, E edge) { return InvalidatableSet.of( set, () -> edges().contains(edge), () -> String.format(EDGE_REMOVED_FROM_GRAPH, edge)); } /** * Returns a {@link Set} whose methods throw {@link IllegalStateException} when the given node is
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Mar 13 18:17:09 UTC 2024 - 10.1K bytes - Viewed (0) -
guava/src/com/google/common/graph/AbstractNetwork.java
* not present in this network. * * @since 33.1.0 */ protected final <T> Set<T> edgeInvalidatableSet(Set<T> set, E edge) { return InvalidatableSet.of( set, () -> edges().contains(edge), () -> String.format(EDGE_REMOVED_FROM_GRAPH, edge)); } /** * Returns a {@link Set} whose methods throw {@link IllegalStateException} when the given node is
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Mar 13 18:17:09 UTC 2024 - 10.4K bytes - Viewed (0) -
guava/src/com/google/common/graph/AbstractBaseGraph.java
} protected final <T> Set<T> nodeInvalidatableSet(Set<T> set, N node) { return InvalidatableSet.of( set, () -> nodes().contains(node), () -> String.format(NODE_REMOVED_FROM_GRAPH, node)); } protected final <T> Set<T> nodePairInvalidatableSet(Set<T> set, N nodeU, N nodeV) { return InvalidatableSet.of( set, () -> nodes().contains(nodeU) && nodes().contains(nodeV),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 7.2K bytes - Viewed (0)