/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/lang/constant/ |
D | DirectMethodHandleDesc.java | 59 enum Kind { enum 91 Kind(int refKind) { in Kind() method in DirectMethodHandleDesc.Kind 95 … Kind(int refKind, boolean isInterface) { this.refKind = refKind; this.isInterface = isInterface; } in Kind() method in DirectMethodHandleDesc.Kind 107 public static Kind valueOf(int refKind) { in valueOf() 135 public static Kind valueOf(int refKind, boolean isInterface) { in valueOf() 148 private static final @Stable Kind[] TABLE; 153 for (Kind k : values()) 156 TABLE = new Kind[max+1]; 157 for (Kind kind : values()) { 170 for (Kind kind : values()) { [all …]
|
D | MethodHandleDesc.java | 32 import static java.lang.constant.DirectMethodHandleDesc.Kind.CONSTRUCTOR; 77 static DirectMethodHandleDesc of(DirectMethodHandleDesc.Kind kind, in of() 117 static DirectMethodHandleDesc ofMethod(DirectMethodHandleDesc.Kind kind, in ofMethod() 155 static DirectMethodHandleDesc ofField(DirectMethodHandleDesc.Kind kind, in ofField()
|
D | DirectMethodHandleDescImpl.java | 35 import static java.lang.constant.DirectMethodHandleDesc.Kind.CONSTRUCTOR; 45 private final Kind kind; 65 DirectMethodHandleDescImpl(Kind kind, ClassDesc owner, String name, MethodTypeDesc type) { in DirectMethodHandleDescImpl() 112 public Kind kind() { return kind; } in kind()
|
D | ConstantDescs.java | 42 import static java.lang.constant.DirectMethodHandleDesc.Kind.STATIC; 287 = MethodHandleDesc.ofMethod(Kind.VIRTUAL, CD_MethodHandle, "asType",
|
/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 | 776 WatchEvent.Kind<?>[] events, in register() 824 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/ojluni/src/test/java/lang/constant/ |
D | NameValidationTest.java | 40 import static java.lang.constant.DirectMethodHandleDesc.Kind.VIRTUAL; 54 DirectMethodHandleDesc mh = MethodHandleDesc.of(Kind.VIRTUAL, CD_String, "isEmpty", "()Z"); in testMemberNames()
|
D | DynamicConstantDescTest.java | 149 return MethodHandleDesc.ofMethod(java.lang.constant.DirectMethodHandleDesc.Kind.STATIC, in boostrapMethodForEnumConstant()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | VarHandle.java | 2372 private enum Kind { enum in VarHandle.VarHandleDesc 2379 Kind(DirectMethodHandleDesc bootstrapMethod) { in Kind() method in VarHandle.VarHandleDesc.Kind 2392 private final Kind kind; 2408 private VarHandleDesc(Kind kind, String name, ClassDesc declaringClass, ClassDesc varType) { in VarHandleDesc() 2433 return new VarHandleDesc(Kind.FIELD, name, declaringClass, fieldType); in ofField() 2452 return new VarHandleDesc(Kind.STATIC_FIELD, name, declaringClass, fieldType); in ofStaticField() 2467 …return new VarHandleDesc(Kind.ARRAY, ConstantDescs.DEFAULT_NAME, arrayClass, arrayClass.componentT… in ofArray() 2507 (kind == Kind.STATIC_FIELD) ? "static " : "", in toString()
|
/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()
|
/libcore/api/ |
D | current.txt | 7425 field public static final java.nio.file.WatchEvent.Kind<java.nio.file.Path> ENTRY_CREATE; 7426 field public static final java.nio.file.WatchEvent.Kind<java.nio.file.Path> ENTRY_DELETE; 7427 field public static final java.nio.file.WatchEvent.Kind<java.nio.file.Path> ENTRY_MODIFY; 7428 field public static final java.nio.file.WatchEvent.Kind<java.lang.Object> OVERFLOW; 7434 method public java.nio.file.WatchEvent.Kind<T> kind(); 7437 public static interface WatchEvent.Kind<T> { 7461 …le.WatchKey register(java.nio.file.WatchService, java.nio.file.WatchEvent.Kind<?>[], java.nio.file… 7462 …le.WatchKey register(java.nio.file.WatchService, java.nio.file.WatchEvent.Kind<?>...) throws java.…
|