Searched refs:unit (Results 1 - 25 of 192) sorted by relevance

12345678

/openjdk9/jdk/test/java/time/tck/java/time/
H A DMockSimplePeriod.java74 * Mock period of time measured using a single unit, such as {@code 3 Days}.
93 * The unit the period is measured in.
95 private final TemporalUnit unit; field in class:MockSimplePeriod
98 * Obtains a {@code MockSimplePeriod} from an amount and unit.
102 * @param amount the amount of the period, measured in terms of the unit, positive or negative
103 * @param unit the unit that the period is measured in, must not be the 'Forever' unit, not null
105 * @throws java.time.DateTimeException if the period unit is {@link java.time.temporal.ChronoUnit#FOREVER}.
107 public static MockSimplePeriod of(long amount, TemporalUnit unit) { argument
111 MockSimplePeriod(long amount, TemporalUnit unit) argument
121 get(TemporalUnit unit) argument
[all...]
/openjdk9/jdk/test/java/time/test/java/time/
H A DMockSimplePeriod.java74 * Mock period of time measured using a single unit, such as {@code 3 Days}.
93 * The unit the period is measured in.
95 private final TemporalUnit unit; field in class:MockSimplePeriod
98 * Obtains a {@code MockSimplePeriod} from an amount and unit.
102 * @param amount the amount of the period, measured in terms of the unit, positive or negative
103 * @param unit the unit that the period is measured in, must not be the 'Forever' unit, not null
105 * @throws DateTimeException if the period unit is {@link java.time.temporal.ChronoUnit#FOREVER}.
107 public static MockSimplePeriod of(long amount, TemporalUnit unit) { argument
111 MockSimplePeriod(long amount, TemporalUnit unit) argument
121 get(TemporalUnit unit) argument
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/util/concurrent/
H A DDelayed.java53 * given time unit.
55 * @param unit the time unit
59 long getDelay(TimeUnit unit); argument
H A DScheduledExecutorService.java99 * @param unit the time unit of the delay parameter
108 long delay, TimeUnit unit);
116 * @param unit the time unit of the delay parameter
124 long delay, TimeUnit unit);
154 * @param unit the time unit of the initialDelay and period parameters
168 TimeUnit unit);
194 * @param unit th
107 schedule(Runnable command, long delay, TimeUnit unit) argument
123 schedule(Callable<V> callable, long delay, TimeUnit unit) argument
165 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
205 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
[all...]
H A DBlockingDeque.java73 * <td>{@link #offerFirst(Object, long, TimeUnit) offerFirst(e, time, unit)}</td>
80 * <td>{@link #pollFirst(long, TimeUnit) pollFirst(time, unit)}</td>
104 * <td>{@link #offerLast(Object, long, TimeUnit) offerLast(e, time, unit)}</td>
111 * <td>{@link #pollLast(long, TimeUnit) pollLast(time, unit)}</td>
153 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
154 * <td>{@link #offerLast(Object, long, TimeUnit) offerLast(e, time, unit)}</td>
172 * <td>{@link #poll(long, TimeUnit) poll(time, unit)}</td>
173 * <td>{@link #pollFirst(long, TimeUnit) pollFirst(time, unit)}</td>
308 * {@code unit}
309 * @param unit
320 offerFirst(E e, long timeout, TimeUnit unit) argument
342 offerLast(E e, long timeout, TimeUnit unit) argument
376 pollFirst(long timeout, TimeUnit unit) argument
392 pollLast(long timeout, TimeUnit unit) argument
509 offer(E e, long timeout, TimeUnit unit) argument
560 poll(long timeout, TimeUnit unit) argument
[all...]
H A DBlockingQueue.java70 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
77 * <td>{@link #poll(long, TimeUnit) poll(time, unit)}</td>
240 * {@code unit}
241 * @param unit a {@code TimeUnit} determining how to interpret the
252 boolean offer(E e, long timeout, TimeUnit unit) argument
269 * {@code unit}
270 * @param unit a {@code TimeUnit} determining how to interpret the
276 E poll(long timeout, TimeUnit unit) argument
H A DCompletionService.java117 * {@code unit}
118 * @param unit a {@code TimeUnit} determining how to interpret the
125 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; argument
H A DFuture.java150 * @param unit the time unit of the timeout argument
159 V get(long timeout, TimeUnit unit) argument
H A DTransferQueue.java120 * {@code unit}
121 * @param unit a {@code TimeUnit} determining how to interpret the
134 boolean tryTransfer(E e, long timeout, TimeUnit unit) argument
/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/source/util/
H A DTaskEvent.java82 * The source file, compilation unit and type element
92 * The compilation unit and type element are both set to {@code null}.
101 * Creates a task event for a given kind and compilation unit.
102 * The source file is set from the compilation unit,
105 * @param unit the compilation unit
107 public TaskEvent(Kind kind, CompilationUnitTree unit) { argument
108 this(kind, unit.getSourceFile(), unit, null);
112 * Creates a task event for a given kind, compilation unit
119 TaskEvent(Kind kind, CompilationUnitTree unit, TypeElement clazz) argument
123 TaskEvent(Kind kind, JavaFileObject file, CompilationUnitTree unit, TypeElement clazz) argument
176 private CompilationUnitTree unit; field in class:TaskEvent
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/time/temporal/
H A DTemporal.java132 * Checks if the specified unit is supported.
134 * This checks if the specified unit can be added to, or subtracted from, this date-time.
140 * If the unit is supported, then true must be returned, otherwise false must be returned.
149 * @param unit the unit to check, null returns false
150 * @return true if the unit can be added/subtracted, false if not
152 boolean isSupported(TemporalUnit unit); argument
279 * If the unit is supported, then the addition must be performed.
282 * If the unit is not a {@code ChronoUnit}, then the result of this method
290 * @param amountToAdd the amount of the specified unit t
297 plus(long amountToAdd, TemporalUnit unit) argument
369 minus(long amountToSubtract, TemporalUnit unit) argument
447 until(Temporal endExclusive, TemporalUnit unit) argument
[all...]
H A DTemporalAmount.java79 * A simple case might have a single unit-value pair, such as "6 hours".
80 * A more complex case may have multiple unit-value pairs, such as
102 * Returns the value of the requested unit.
105 * for each unit listed in {@code getUnits}.
112 * @param unit the {@code TemporalUnit} for which to return the value
113 * @return the long value of the unit
114 * @throws DateTimeException if a value for the unit cannot be obtained
115 * @throws UnsupportedTemporalTypeException if the {@code unit} is not supported
117 long get(TemporalUnit unit); argument
125 * of the unit
[all...]
/openjdk9/corba/src/java.corba/share/classes/com/sun/corba/se/spi/monitoring/
H A DStatisticsAccumulator.java61 protected String unit; field in class:StatisticsAccumulator
101 return "Minimum Value = " + min + " " + unit + " " +
102 "Maximum Value = " + max + " " + unit + " " +
103 "Average Value = " + computeAverage() + " " + unit + " " +
104 "Standard Deviation = " + computeStandardDeviation() + " " + unit +
129 * Construct the Statistics Accumulator by providing the unit as a String.
133 * @param unit a String representing the units for the samples collected
135 public StatisticsAccumulator( String unit ) {
136 this.unit = unit;
[all...]
/openjdk9/jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/
H A DXPlotter.java35 Plotter.Unit unit) {
36 super(unit,0,false);
34 XPlotter(JTable table, Plotter.Unit unit) argument
/openjdk9/jdk/src/java.base/share/classes/java/nio/file/attribute/
H A DFileTime.java52 * The unit of granularity to interpret the value. Null if
54 * the {@code value} and {@code unit} pair will not be used
57 private final TimeUnit unit; field in class:FileTime
77 private FileTime(long value, TimeUnit unit, Instant instant) { argument
79 this.unit = unit;
84 * Returns a {@code FileTime} representing a value at the given unit of
90 * @param unit
91 * the unit of granularity to interpret the value
95 public static FileTime from(long value, TimeUnit unit) { argument
141 to(TimeUnit unit) argument
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/time/chrono/
H A DChronoPeriod.java82 * The amount of a supported unit may be set to zero.
124 * Gets the value of the requested unit.
129 * Requesting an unsupported unit will throw an exception.
131 * @param unit the {@code TemporalUnit} for which to return the value
132 * @return the long value of the unit
133 * @throws DateTimeException if the unit is not supported
134 * @throws UnsupportedTemporalTypeException if the unit is not supported
137 long get(TemporalUnit unit); argument
173 for (TemporalUnit unit : getUnits()) {
174 if (get(unit) !
[all...]
H A DChronoLocalDateImpl.java198 public D plus(long amountToAdd, TemporalUnit unit) { argument
199 if (unit instanceof ChronoUnit) {
200 ChronoUnit f = (ChronoUnit) unit;
211 throw new UnsupportedTemporalTypeException("Unsupported unit: " + unit);
213 return (D) ChronoLocalDate.super.plus(amountToAdd, unit);
224 public D minus(long amountToSubtract, TemporalUnit unit) { argument
225 return (D) ChronoLocalDate.super.minus(amountToSubtract, unit);
376 public long until(Temporal endExclusive, TemporalUnit unit) { argument
379 if (unit instanceo
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/nio/file/
H A DWatchService.java146 * how to wait before giving up, in units of unit
147 * @param unit
159 WatchKey poll(long timeout, TimeUnit unit) argument
/openjdk9/jdk/src/java.base/share/classes/java/util/concurrent/locks/
H A DCondition.java313 * boolean aMethod(long timeout, TimeUnit unit) {
314 * long nanos = unit.toNanos(timeout);
365 * <pre> {@code awaitNanos(unit.toNanos(time)) > 0}</pre>
368 * @param unit the time unit of the {@code time} argument
374 boolean await(long time, TimeUnit unit) throws InterruptedException; argument
H A DLock.java315 * @param unit the time unit of the {@code time} argument
323 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; argument
/openjdk9/hotspot/src/share/vm/utilities/
H A Dticks.cpp53 static ReturnType time_conversion(const Tickspan& span, TicksToTimeHelper::Unit unit) { argument
54 assert(TicksToTimeHelper::SECONDS == unit ||
55 TicksToTimeHelper::MILLISECONDS == unit, "invalid unit!");
57 ReturnType frequency_per_unit = (ReturnType)os::elapsed_frequency() / (ReturnType)unit;
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/doubleconv/
H A DFastDtoa.java84 // * distance_too_high_w == (too_high - w).f() * unit
85 // * unsafe_interval == (too_high - too_low).f() * unit
86 // * rest = (too_high - buffer * 10^kappa).f() * unit
87 // * ten_kappa = 10^kappa * unit
88 // * unit = the common multiplier
97 final long unit) {
98 final long small_distance = distance_too_high_w - unit;
99 final long big_distance = distance_too_high_w + unit;
104 // The real w (* unit) must lie somewhere inside the interval
111 // ^v 1 unit
92 roundWeed(final DtoaBuffer buffer, final long distance_too_high_w, final long unsafe_interval, long rest, final long ten_kappa, final long unit) argument
211 roundWeedCounted(final char[] buffer, final int length, final long rest, final long ten_kappa, final long unit) argument
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/time/
H A DYearMonth.java363 * Checks if the specified unit is supported.
365 * This checks if the specified unit can be added to, or subtracted from, this year-month.
369 * If the unit is a {@link ChronoUnit} then the query is implemented here.
381 * If the unit is not a {@code ChronoUnit}, then the result of this method
384 * Whether the unit is supported is determined by the unit.
386 * @param unit the unit to check, null returns false
387 * @return true if the unit can be added/subtracted, false if not
390 public boolean isSupported(TemporalUnit unit) { argument
805 plus(long amountToAdd, TemporalUnit unit) argument
903 minus(long amountToSubtract, TemporalUnit unit) argument
1045 until(Temporal endExclusive, TemporalUnit unit) argument
[all...]
H A DYear.java376 * Checks if the specified unit is supported.
378 * This checks if the specified unit can be added to, or subtracted from, this year.
382 * If the unit is a {@link ChronoUnit} then the query is implemented here.
393 * If the unit is not a {@code ChronoUnit}, then the result of this method
396 * Whether the unit is supported is determined by the unit.
398 * @param unit the unit to check, null returns false
399 * @return true if the unit can be added/subtracted, false if not
402 public boolean isSupported(TemporalUnit unit) { argument
708 plus(long amountToAdd, TemporalUnit unit) argument
784 minus(long amountToSubtract, TemporalUnit unit) argument
913 until(Temporal endExclusive, TemporalUnit unit) argument
[all...]
H A DInstant.java465 * Checks if the specified unit is supported.
467 * This checks if the specified unit can be added to, or subtracted from, this date-time.
471 * If the unit is a {@link ChronoUnit} then the query is implemented here.
485 * If the unit is not a {@code ChronoUnit}, then the result of this method
488 * Whether the unit is supported is determined by the unit.
490 * @param unit the unit to check, null returns false
491 * @return true if the unit can be added/subtracted, false if not
494 public boolean isSupported(TemporalUnit unit) { argument
747 truncatedTo(TemporalUnit unit) argument
849 plus(long amountToAdd, TemporalUnit unit) argument
977 minus(long amountToSubtract, TemporalUnit unit) argument
1142 until(Temporal endExclusive, TemporalUnit unit) argument
[all...]

Completed in 113 milliseconds

12345678