Searched defs:identity (Results 1 - 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/function/
H A DUnaryOperator.java49 static <T> UnaryOperator<T> identity() { method in interface:UnaryOperator
H A DDoubleUnaryOperator.java92 static DoubleUnaryOperator identity() { method in interface:DoubleUnaryOperator
H A DFunction.java97 static <T> Function<T, T> identity() { method in interface:Function
H A DIntUnaryOperator.java92 static IntUnaryOperator identity() { method in interface:IntUnaryOperator
H A DLongUnaryOperator.java92 static LongUnaryOperator identity() { method in interface:LongUnaryOperator
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DIdentityStub.java81 public boolean identityEquals(Identity identity) { argument
82 return super.identityEquals(identity);
H A DIdentityScopeStub.java94 public void addIdentity(Identity identity) throws KeyManagementException { argument
103 public void removeIdentity(Identity identity) throws KeyManagementException { argument
117 * Sets the system's identity scope
H A DSystemScope.java45 // Identities hash: key is the identity name
102 public synchronized void addIdentity(Identity identity) throws KeyManagementException { argument
103 if (identity == null) {
104 throw new NullPointerException("identity == null");
107 String name = identity.getName();
112 PublicKey key = identity.getPublicKey();
117 names.put(name, identity);
119 keys.put(key, identity);
126 public synchronized void removeIdentity(Identity identity) argument
130 if (identity
[all...]
/libcore/ojluni/src/main/java/java/security/
H A DIdentityScope.java41 * expected, that different types of identity scopes will
110 * Constructs a new identity scope with the specified name.
119 * Constructs a new identity scope with the specified name and scope.
122 * @param scope the scope for the new identity scope.
124 * @exception KeyManagementException if there is already an identity
133 * Returns the system's identity scope.
135 * @return the system's identity scope, or {@code null} if none has been
149 * Sets the system's identity scope.
154 * as its argument to see if it's ok to set the identity scope.
160 * setting the identity scop
221 addIdentity(Identity identity) argument
232 removeIdentity(Identity identity) argument
[all...]
H A DIdentity.java67 * The name for this identity.
74 * The public key for this identity.
81 * Generic, descriptive information about the identity.
88 * The scope of the identity.
95 * The certificates for this identity.
109 * Constructs an identity with the specified name and scope.
111 * @param name the identity name.
112 * @param scope the scope of the identity.
114 * @exception KeyManagementException if there is already an identity
127 * Constructs an identity wit
339 equals(Object identity) argument
369 identityEquals(Identity identity) argument
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DDoubleAccumulator.java60 * Double.NEGATIVE_INFINITY} as the identity. The order of
83 private final long identity; // use long representation field in class:DoubleAccumulator
87 * and identity element.
89 * @param identity identity (initial value) for the accumulator function
92 double identity) {
94 base = this.identity = Double.doubleToRawLongBits(identity);
142 * Resets variables maintaining updates to the identity value.
151 base = identity;
91 DoubleAccumulator(DoubleBinaryOperator accumulatorFunction, double identity) argument
252 private final long identity; field in class:DoubleAccumulator.SerializationProxy
254 SerializationProxy(double value, DoubleBinaryOperator function, long identity) argument
[all...]
H A DLongAccumulator.java66 * Long.MIN_VALUE} as the identity.
85 private final long identity; field in class:LongAccumulator
89 * and identity element.
91 * @param identity identity (initial value) for the accumulator function
94 long identity) {
96 base = this.identity = identity;
139 * Resets variables maintaining updates to the identity value.
148 base = identity;
93 LongAccumulator(LongBinaryOperator accumulatorFunction, long identity) argument
247 private final long identity; field in class:LongAccumulator.SerializationProxy
249 SerializationProxy(long value, LongBinaryOperator function, long identity) argument
[all...]
H A DStriped64.java132 final void reset(long identity) { argument
133 U.putLongVolatile(this, VALUE, identity);
/libcore/ojluni/src/main/java/java/util/stream/
H A DReduceOps.java61 * @param seed the identity element for the reduction
240 * @param identity the identity for the combining function
245 makeInt(int identity, IntBinaryOperator operator) { argument
253 state = identity;
376 * @param identity the identity for the combining function
381 makeLong(long identity, LongBinaryOperator operator) { argument
389 state = identity;
512 * @param identity th
517 makeDouble(double identity, DoubleBinaryOperator operator) argument
[all...]
H A DDoubleStream.java324 * elements of this stream, using the provided identity value and an
329 * double result = identity;
337 * <p>The {@code identity} value must be an identity for the accumulator
339 * {@code accumulator.apply(identity, x)} is equal to {@code x}.
364 * @param identity the identity value for the accumulating function
375 double reduce(double identity, DoubleBinaryOperator op); argument
H A DStream.java557 * elements of this stream, using the provided identity value and an
562 * T result = identity;
570 * <p>The {@code identity} value must be an identity for the accumulator
572 * {@code accumulator.apply(identity, t)} is equal to {@code t}.
597 * @param identity the identity value for the accumulating function
604 T reduce(T identity, BinaryOperator<T> accumulator); argument
648 * elements of this stream, using the provided identity, accumulation and
651 * U result = identity;
693 reduce(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner) argument
[all...]
H A DCollectors.java639 * provided identity.
648 * @param identity the identity value for the reduction (also, the value
657 reducing(T identity, BinaryOperator<T> op) { argument
659 boxSupplier(identity),
667 private static <T> Supplier<T[]> boxSupplier(T identity) { argument
668 return () -> (T[]) new Object[] { identity };
746 * @param identity the identity value for the reduction (also, the value
756 Collector<T, ?, U> reducing(U identity, argument
[all...]
H A DDoublePipeline.java460 public final double reduce(double identity, DoubleBinaryOperator op) { argument
461 return evaluate(ReduceOps.makeDouble(identity, op));
H A DIntPipeline.java456 public final int reduce(int identity, IntBinaryOperator op) { argument
457 return evaluate(ReduceOps.makeInt(identity, op));
H A DIntStream.java319 * elements of this stream, using the provided identity value and an
324 * int result = identity;
332 * <p>The {@code identity} value must be an identity for the accumulator
334 * {@code accumulator.apply(identity, x)} is equal to {@code x}.
359 * @param identity the identity value for the accumulating function
370 int reduce(int identity, IntBinaryOperator op); argument
H A DLongPipeline.java438 public final long reduce(long identity, LongBinaryOperator op) { argument
439 return evaluate(ReduceOps.makeLong(identity, op));
H A DLongStream.java323 * elements of this stream, using the provided identity value and an
328 * long result = identity;
336 * <p>The {@code identity} value must be an identity for the accumulator
338 * {@code accumulator.apply(identity, x)} is equal to {@code x}.
363 * @param identity the identity value for the accumulating function
374 long reduce(long identity, LongBinaryOperator op); argument
H A DReferencePipeline.java475 public final P_OUT reduce(final P_OUT identity, final BinaryOperator<P_OUT> accumulator) { argument
476 return evaluate(ReduceOps.makeRef(identity, accumulator, accumulator));
485 public final <R> R reduce(R identity, BiFunction<R, ? super P_OUT, R> accumulator, BinaryOperator<R> combiner) { argument
486 return evaluate(ReduceOps.makeRef(identity, accumulator, combiner));
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DTabulatorsTest.java209 private final U identity; field in class:TabulatorsTest.ReduceAssertion
213 ReduceAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) { argument
214 this.identity = identity;
226 assertEquals(value, identity);
534 new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum)));
539 new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum)));
545 new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum)));
550 new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum)));
603 new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Intege
[all...]
/libcore/ojluni/src/lambda/java/java/lang/invoke/
H A DMethodHandles.java118 MethodHandle identity(Class<?> type) { return null; } method in class:MethodHandles

Completed in 479 milliseconds

12