Searched refs:before (Results 1 - 25 of 39) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/function/
H A DDoubleUnaryOperator.java52 * Returns a composed operator that first applies the {@code before}
57 * @param before the operator to apply before this operator is applied
58 * @return a composed operator that first applies the {@code before}
60 * @throws NullPointerException if before is null
64 default DoubleUnaryOperator compose(DoubleUnaryOperator before) { argument
65 Objects.requireNonNull(before);
66 return (double v) -> applyAsDouble(before.applyAsDouble(v));
H A DIntUnaryOperator.java52 * Returns a composed operator that first applies the {@code before}
57 * @param before the operator to apply before this operator is applied
58 * @return a composed operator that first applies the {@code before}
60 * @throws NullPointerException if before is null
64 default IntUnaryOperator compose(IntUnaryOperator before) { argument
65 Objects.requireNonNull(before);
66 return (int v) -> applyAsInt(before.applyAsInt(v));
H A DLongUnaryOperator.java52 * Returns a composed operator that first applies the {@code before}
57 * @param before the operator to apply before this operator is applied
58 * @return a composed operator that first applies the {@code before}
60 * @throws NullPointerException if before is null
64 default LongUnaryOperator compose(LongUnaryOperator before) { argument
65 Objects.requireNonNull(before);
66 return (long v) -> applyAsLong(before.applyAsLong(v));
H A DFunction.java52 * Returns a composed function that first applies the {@code before}
57 * @param <V> the type of input to the {@code before} function, and to the
59 * @param before the function to apply before this function is applied
60 * @return a composed function that first applies the {@code before}
62 * @throws NullPointerException if before is null
66 default <V> Function<V, R> compose(Function<? super V, ? extends T> before) { argument
67 Objects.requireNonNull(before);
68 return (V v) -> apply(before.apply(v));
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DTeeOpTest.java75 void before(TestData<T, ?> td) { method in class:TeeOpTest.AbstractRecordingConsumer
99 .before(b::before)
115 .before(b::before)
131 .before(b::before)
147 .before(b::before)
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/
H A DTCKZoneOffsetTransitionSerialization.java99 LocalDateTime before = LocalDateTime.of(2010, 3, 31, 1, 0);
101 ZoneOffsetTransition test = ZoneOffsetTransition.of(before, OFFSET_0200, OFFSET_0300);
107 LocalDateTime before = LocalDateTime.of(2010, 10, 31, 1, 0);
109 ZoneOffsetTransition test = ZoneOffsetTransition.of(before, OFFSET_0300, OFFSET_0200);
/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldLogRecordTest.java31 long before = lr.getMillis();
39 assertTrue(after-before>0);
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
H A DTCKZoneOffsetTransition.java119 LocalDateTime before = LocalDateTime.of(2010, 3, 31, 1, 0);
121 ZoneOffsetTransition test = ZoneOffsetTransition.of(before, OFFSET_0200, OFFSET_0300);
124 assertEquals(test.getDateTimeBefore(), before);
126 assertEquals(test.getInstant(), before.toInstant(OFFSET_0200));
134 LocalDateTime before = LocalDateTime.of(2010, 10, 31, 1, 0);
136 ZoneOffsetTransition test = ZoneOffsetTransition.of(before, OFFSET_0300, OFFSET_0200);
139 assertEquals(test.getDateTimeBefore(), before);
141 assertEquals(test.getInstant(), before.toInstant(OFFSET_0300));
/libcore/ojluni/src/main/java/java/time/zone/
H A DZoneOffsetTransition.java111 * The offset before transition.
127 * actually occurs, expressed local to the before offset, not null
128 * @param offsetBefore the offset before the transition, not null
150 * @param transition the transition date-time with the offset before the transition, not null
151 * @param offsetBefore the offset before the transition, not null
164 * @param offsetBefore the offset before the transition, not null
226 ZoneOffset before = Ser.readOffset(in);
228 if (before.equals(after)) {
231 return new ZoneOffsetTransition(epochSecond, before, after);
261 * Gets the local transition date-time, as would be expressed with the 'before' offse
[all...]
H A DZoneOffsetTransitionRule.java90 * <li>the Sunday on or before the 16th March
126 * The cutover time in the 'before' offset.
142 * The offset before the cutover.
161 * @param time the cutover time in the 'before' offset, not null
165 * @param offsetBefore the offset before the cutover, not null
204 * @param time the cutover time in the 'before' offset, not null
208 * @param offsetBefore the offset before the cutover, not null
353 ZoneOffset before = (beforeByte == 3 ? ZoneOffset.ofTotalSeconds(in.readInt()) : ZoneOffset.ofTotalSeconds(std.getTotalSeconds() + beforeByte * 1800));
355 return ZoneOffsetTransitionRule.of(month, dom, dow, time, timeByte == 24, defn, std, before, after);
456 * Gets the offset before th
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DLinkedHashMap.java208 * the doubly-linked before/after list. This class also
217 LinkedHashMapEntry<K,V> before, after; field in class:LinkedHashMap.LinkedHashMapEntry
252 p.before = last;
260 LinkedHashMapEntry<K,V> b = dst.before = src.before;
269 a.before = dst;
309 (LinkedHashMapEntry<K,V>)e, b = p.before, a = p.after;
310 p.before = p.after = null;
318 a.before = b;
333 (LinkedHashMapEntry<K,V>)e, b = p.before,
[all...]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DLoggingTestCase.java46 public void before() { method in class:LoggingTestCase
H A DOpTestCase.java257 Consumer<TestData<T, S_IN>> before = LambdaTestHelpers.bEmpty; field in class:OpTestCase.ExerciseDataStreamBuilder
318 public ExerciseDataStreamBuilder<T, U, S_IN, S_OUT> before(Consumer<TestData<T, S_IN>> before) { argument
319 this.before = Objects.requireNonNull(before);
377 before.accept(data);
392 before.accept(data);
H A DLambdaTestHelpers.java137 public static<V, T, R> Function<V, R> compose(Function<? super T, ? extends R> after, Function<? super V, ? extends T> before) { argument
138 Objects.requireNonNull(before);
139 return (V v) -> after.apply(before.apply(v));
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DLoggingTestCase.java46 public void before() { method in class:LoggingTestCase
H A DOpTestCase.java258 Consumer<TestData<T, S_IN>> before = LambdaTestHelpers.bEmpty; field in class:OpTestCase.ExerciseDataStreamBuilder
319 public ExerciseDataStreamBuilder<T, U, S_IN, S_OUT> before(Consumer<TestData<T, S_IN>> before) { argument
320 this.before = Objects.requireNonNull(before);
378 before.accept(data);
393 before.accept(data);
H A DLambdaTestHelpers.java138 public static<V, T, R> Function<V, R> compose(Function<? super T, ? extends R> after, Function<? super V, ? extends T> before) { argument
139 Objects.requireNonNull(before);
140 return (V v) -> after.apply(before.apply(v));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DCalendarTest.java486 * java.util.Calendar#before(Object)
495 // test before()
496 assertTrue(early.before(late));
497 assertFalse(early.before(early));
498 assertFalse(late.before(early));
507 // test before()
508 assertTrue(early.before(late));
509 assertFalse(early.before(early));
510 assertFalse(late.before(early));
519 // test before()
[all...]
H A DDateTest.java129 * java.util.Date#before(java.util.Date)
132 // Test for method boolean java.util.Date.before(java.util.Date)
135 assertTrue("Older was returned as newer", !d2.before(d1));
136 assertTrue("Newer was returned as older", d1.before(d2));
139 d1.before(null);
511 * is called before a test is executed.
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DObjectTest.java299 long before = System.currentTimeMillis();
302 long error = (after - before - delay);
306 // Allow jit to warm up before testing
309 toLong[count][1] = before;
319 sb.append(", before: ");
H A DProcessManagerTest.java184 int before = countLines(process);
195 assertEquals(before, after);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DSecurity2Test.java107 int before = table.get(key);
108 table.put(key, before + 1);
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCertificateValidity.java110 * @param notBefore the date and time before which the certificate
266 * and before() to do something entirely different.
272 if (notAfter.before(now)) {
H A DPrivateKeyUsageExtension.java47 * certificate should not be used to sign objects before or after the
110 * @param notBefore the date/time before which the private key
212 * and before() to do something entirely different.
218 if (notAfter.before(now)) {
/libcore/ojluni/src/main/java/java/sql/
H A DTimestamp.java104 * A negative number is the number of milliseconds before
446 public boolean before(Timestamp ts) { method in class:Timestamp
470 * <code>Timestamp</code> object is before the given argument;
498 * if this <code>Timestamp</code> object is before the given argument;

Completed in 341 milliseconds

12