Home
last modified time | relevance | path

Searched refs:CustomTask (Results 1 – 2 of 2) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DScheduledExecutorSubclassTest.java17 static class CustomTask<V> implements RunnableScheduledFuture<V> { class in ScheduledExecutorSubclassTest
20 CustomTask(RunnableScheduledFuture<V> t) { task = t; } in CustomTask() method in ScheduledExecutorSubclassTest.CustomTask
28 return task.compareTo(((CustomTask)t).task); in compareTo()
50 return new CustomTask<V>(task); in decorateTask()
54 return new CustomTask<V>(task); in decorateTask()
DThreadPoolExecutorSubclassTest.java20 static class CustomTask<V> implements RunnableFuture<V> { class in ThreadPoolExecutorSubclassTest
29 CustomTask(Callable<V> c) { in CustomTask() method in ThreadPoolExecutorSubclassTest.CustomTask
33 CustomTask(final Runnable r, final V res) { in CustomTask() method in ThreadPoolExecutorSubclassTest.CustomTask
116 return new CustomTask<V>(c); in newTaskFor()
119 return new CustomTask<V>(r, v); in newTaskFor()