/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | MatchOpTest.java | 79 private enum Kind { ANY, ALL, NONE } enum in MatchOpTest 87 … = new HashMap<Kind, Function<Predicate<Integer>, Function<Stream<Integer>, Boolean>>>() {{ 88 put(Kind.ANY, p -> s -> s.anyMatch(p)); 89 put(Kind.ALL, p -> s -> s.allMatch(p)); 90 put(Kind.NONE, p -> s -> s.noneMatch(p)); 94 private <T> Map<Kind, Function<Predicate<T>, Function<Stream<T>, Boolean>>> kinds() { in kinds() 95 return (Map<Kind, Function<Predicate<T>, Function<Stream<T>, Boolean>>>) kinds; in kinds() 98 …private <T> void assertPredicates(List<T> source, Kind kind, Predicate<T>[] predicates, boolean...… in assertPredicates() 107 assertPredicates(countTo(0), Kind.ANY, INTEGER_PREDICATES, false, false, false, false); in testStreamMatches() 108 assertPredicates(countTo(0), Kind.ALL, INTEGER_PREDICATES, true, true, true, true); in testStreamMatches() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | StandardWatchEventKinds.java | 47 public static final WatchEvent.Kind<Object> OVERFLOW = 58 public static final WatchEvent.Kind<Path> ENTRY_CREATE = 69 public static final WatchEvent.Kind<Path> ENTRY_DELETE = 80 public static final WatchEvent.Kind<Path> ENTRY_MODIFY = 83 private static class StdWatchEventKind<T> implements WatchEvent.Kind<T> {
|
D | WatchEvent.java | 55 public static interface Kind<T> { interface 95 Kind<T> kind(); in kind()
|
D | Watchable.java | 90 WatchEvent.Kind<?>[] events, in register() 125 WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) in register()
|
D | Path.java | 662 WatchEvent.Kind<?>[] events, in register() 710 WatchEvent.Kind<?>... events) in register()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | AbstractPoller.java | 79 Set<? extends WatchEvent.Kind<?>> events, in implRegister() 96 WatchEvent.Kind<?>[] events, in register() 103 Set<WatchEvent.Kind<?>> eventSet = new HashSet<>(events.length); in register() 104 for (WatchEvent.Kind<?> event: events) { in register() 256 Set<? extends WatchEvent.Kind<?>> events = in processRequests() 257 (Set<? extends WatchEvent.Kind<?>>)params[1]; in processRequests()
|
D | AbstractWatchKey.java | 105 final void signalEvent(WatchEvent.Kind<?> kind, Object context) { in signalEvent() 149 new Event<Object>((WatchEvent.Kind<Object>)kind, context); in signalEvent() 191 private final WatchEvent.Kind<T> kind; 197 Event(WatchEvent.Kind<T> type, T context) { in Event() 204 public WatchEvent.Kind<T> kind() { in kind()
|
D | PollingWatchService.java | 72 WatchEvent.Kind<?>[] events, in register() 77 final Set<WatchEvent.Kind<?>> eventSet = in register() 78 new HashSet<WatchEvent.Kind<?>>(events.length); in register() 79 for (WatchEvent.Kind<?> event: events) { in register() 142 Set<? extends WatchEvent.Kind<?>> events, 232 private Set<? extends WatchEvent.Kind<?>> events; 282 void enable(Set<? extends WatchEvent.Kind<?>> events, long period) {
|
D | LinuxWatchService.java | 88 WatchEvent.Kind<?>[] events, in register() 218 Set<? extends WatchEvent.Kind<?>> events, in implRegister() 224 for (WatchEvent.Kind<?> event: events) { in implRegister() 410 private WatchEvent.Kind<?> maskToEventKind(int mask) { in maskToEventKind() 457 WatchEvent.Kind<?> kind = maskToEventKind(mask); in processEvent()
|
D | AbstractPath.java | 101 WatchEvent.Kind<?>... events) in register()
|
D | AbstractWatchService.java | 66 WatchEvent.Kind<?>[] events, in register()
|
D | UnixPath.java | 888 WatchEvent.Kind<?>[] events, in register()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | MutableIntBenchmark.java | 24 enum Kind { enum in MutableIntBenchmark 73 @Param Kind kind;
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | LinuxPathTest.java | 21 import java.nio.file.WatchEvent.Kind; 367 WatchEvent.Kind<?>[] events = {ENTRY_CREATE, ENTRY_DELETE}; in test_register$WatchService$WatchEvent_Kind() 402 WatchEvent.Kind<?>[] events = {ENTRY_CREATE, ENTRY_DELETE}; in test_register$WatchService$WatchEvent_Kind_NPE() 411 directory.register(watchService, (WatchEvent.Kind<?>) null); in test_register$WatchService$WatchEvent_Kind_NPE() 431 WatchEvent.Kind<?>[] events = {new NonStandardEvent<>()}; in test_register$WatchService$WatchEvent_Kind_Exception() 458 directory.register(watchService, (Kind<?>) null); in test_register$WatchService$WatchEvent_Kind_Exception_NPE() 467 WatchEvent.Kind<?>[] events = {ENTRY_CREATE}; in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier() 483 WatchEvent.Kind<?>[] events = {ENTRY_CREATE}; in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier_NPE() 580 private static class NonStandardEvent<T> implements WatchEvent.Kind<T> {
|
D | WatchServiceTest.java | 51 private static final WatchEvent.Kind<?>[] ALL_EVENTS_KINDS = 58 final WatchEvent.Kind<Path> expectedKind; 62 public WatchEventResult(WatchEvent.Kind<Path> expectedKind) { in WatchEventResult() 68 public WatchEventResult(WatchEvent.Kind<Path> expectedKind, in WatchEventResult() 167 WatchEvent.Kind<?>[] events = {ENTRY_DELETE}; in test_EventMask()
|