Searched defs:function (Results 51 - 75 of 78) sorted by relevance

1234

/libcore/luni/src/main/native/
H A DIcuUtilities.cpp52 bool maybeThrowIcuException(JNIEnv* env, const char* function, UErrorCode error) { argument
66 jniThrowExceptionFmt(env, exceptionClass, "%s failed: %s", function, u_errorName(error));
/libcore/luni/src/test/java/libcore/java/util/function/
H A DBiPredicateTest.java17 package libcore.java.util.function;
22 import java.util.function.BiPredicate;
H A DDoublePredicateTest.java17 package libcore.java.util.function;
22 import java.util.function.DoublePredicate;
H A DIntPredicateTest.java17 package libcore.java.util.function;
22 import java.util.function.IntPredicate;
H A DLongPredicateTest.java17 package libcore.java.util.function;
22 import java.util.function.LongPredicate;
H A DPredicateTest.java17 package libcore.java.util.function;
22 import java.util.function.Predicate;
/libcore/luni/src/test/java/tests/support/
H A DMockFunction.java35 public void function(FunctionContext fc, String args[]) { method in class:MockFunction
/libcore/ojluni/src/main/java/java/util/function/
H A DBiPredicate.java25 package java.util.function;
30 * Represents a predicate (boolean-valued function) of two arguments. This is
H A DDoubleUnaryOperator.java25 package java.util.function;
H A DFunction.java25 package java.util.function;
30 * Represents a function that accepts one argument and produces a result.
35 * @param <T> the type of the input to the function
36 * @param <R> the type of the result of the function
44 * Applies this function to the given argument.
46 * @param t the function argument
47 * @return the function result
52 * Returns a composed function that first applies the {@code before}
53 * function to its input, and then applies this function t
[all...]
H A DIntUnaryOperator.java25 package java.util.function;
H A DLongUnaryOperator.java25 package java.util.function;
H A DPredicate.java25 package java.util.function;
30 * Represents a predicate (boolean-valued function) of one argument.
/libcore/luni/src/main/java/java/util/concurrent/
H A DConcurrentMap.java11 import java.util.function.BiConsumer;
12 import java.util.function.BiFunction;
13 import java.util.function.Function;
239 * } while (!map.replace(k, v, function.apply(k, v)));
243 * threads attempt updates including potentially calling the function
258 default void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { argument
259 Objects.requireNonNull(function);
261 while (!replace(k, v, function.apply(k, v))) {
326 * remapping function may be called multiple times.
374 * remapping function ma
[all...]
H A DConcurrentSkipListMap.java26 import java.util.function.BiConsumer;
27 import java.util.function.BiFunction;
28 import java.util.function.Consumer;
29 import java.util.function.Function;
30 import java.util.function.Predicate;
1629 * attempts to compute its value using the given mapping function
1630 * and enters it into this map unless {@code null}. The function
1635 * @param mappingFunction the function to compute a value
1656 * value. The function is <em>NOT</em> guaranteed to be applied
1660 * @param remappingFunction the function t
3210 replaceAll(BiFunction<? super K, ? super V, ? extends V> function) argument
3226 removeEntryIf(Predicate<? super Entry<K,V>> function) argument
3244 removeValueIf(Predicate<? super V> function) argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DDoubleAccumulator.java10 import java.util.function.DoubleBinaryOperator;
14 * value updated using a supplied function. When updates (method
25 * <p>The supplied accumulator function should be side-effect-free,
27 * contention among threads. The function is applied with the current
53 private final DoubleBinaryOperator function; field in class:DoubleAccumulator
57 * Creates a new instance using the given accumulator function
59 * @param accumulatorFunction a side-effect-free function of two arguments
60 * @param identity identity (initial value) for the accumulator function
64 this.function = accumulatorFunction;
77 (function
215 private final DoubleBinaryOperator function; field in class:DoubleAccumulator.SerializationProxy
225 SerializationProxy(double value, DoubleBinaryOperator function, long identity) argument
[all...]
H A DLongAccumulator.java10 import java.util.function.LongBinaryOperator;
14 * value updated using a supplied function. When updates (method
31 * not matter. The supplied accumulator function should be
33 * fail due to contention among threads. The function is applied with
55 private final LongBinaryOperator function; field in class:LongAccumulator
59 * Creates a new instance using the given accumulator function
61 * @param accumulatorFunction a side-effect-free function of two arguments
62 * @param identity identity (initial value) for the accumulator function
66 this.function = accumulatorFunction;
78 (r = function
212 private final LongBinaryOperator function; field in class:LongAccumulator.SerializationProxy
220 SerializationProxy(long value, LongBinaryOperator function, long identity) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DArrayPrefixHelpers.java11 import java.util.function.BinaryOperator;
12 import java.util.function.DoubleBinaryOperator;
13 import java.util.function.IntBinaryOperator;
14 import java.util.function.LongBinaryOperator;
78 final BinaryOperator<T> function; field in class:ArrayPrefixHelpers.CumulateTask
85 BinaryOperator<T> function,
88 this.function = function; this.array = array;
97 CumulateTask(CumulateTask<T> parent, BinaryOperator<T> function, argument
101 this.function
84 CumulateTask(CumulateTask<T> parent, BinaryOperator<T> function, T[] array, int lo, int hi) argument
230 final LongBinaryOperator function; field in class:ArrayPrefixHelpers.LongCumulateTask
236 LongCumulateTask(LongCumulateTask parent, LongBinaryOperator function, long[] array, int lo, int hi) argument
249 LongCumulateTask(LongCumulateTask parent, LongBinaryOperator function, long[] array, int origin, int fence, int threshold, int lo, int hi) argument
380 final DoubleBinaryOperator function; field in class:ArrayPrefixHelpers.DoubleCumulateTask
386 DoubleCumulateTask(DoubleCumulateTask parent, DoubleBinaryOperator function, double[] array, int lo, int hi) argument
399 DoubleCumulateTask(DoubleCumulateTask parent, DoubleBinaryOperator function, double[] array, int origin, int fence, int threshold, int lo, int hi) argument
530 final IntBinaryOperator function; field in class:ArrayPrefixHelpers.IntCumulateTask
536 IntCumulateTask(IntCumulateTask parent, IntBinaryOperator function, int[] array, int lo, int hi) argument
549 IntCumulateTask(IntCumulateTask parent, IntBinaryOperator function, int[] array, int origin, int fence, int threshold, int lo, int hi) argument
[all...]
H A DLinkedHashMap.java32 import java.util.function.BiFunction;
33 import java.util.function.Consumer;
34 import java.util.function.BiConsumer;
86 * <tt>remove</tt>), assuming the hash function disperses elements
553 public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { argument
554 if (function == null)
559 e.value = function.apply(e.key, e.value);
H A DMap.java28 import java.util.function.BiConsumer;
29 import java.util.function.BiFunction;
30 import java.util.function.Function;
638 * function on that entry until all entries have been processed or the
639 * function throws an exception. Exceptions thrown by the function are
646 * entry.setValue(function.apply(entry.getKey(), entry.getValue()));
654 * @param function the function to apply to each entry
659 * @throws NullPointerException if the specified function i
675 replaceAll(BiFunction<? super K, ? super V, ? extends V> function) argument
[all...]
H A DHashtable.java30 import java.util.function.BiConsumer;
31 import java.util.function.BiFunction;
32 import java.util.function.Function;
872 public synchronized void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { argument
873 Objects.requireNonNull(function); // explicit check required in case
881 function.apply(entry.key, entry.value));
H A DIdentityHashMap.java30 import java.util.function.BiConsumer;
31 import java.util.function.BiFunction;
32 import java.util.function.Consumer;
66 * identity hash function ({@link System#identityHashCode(Object)})
1365 public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { argument
1366 Objects.requireNonNull(function);
1373 t[index + 1] = function.apply((K) unmaskNull(k), (V) t[index + 1]);
H A DWeakHashMap.java30 import java.util.function.BiConsumer;
31 import java.util.function.BiFunction;
32 import java.util.function.Consumer;
1013 public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { argument
1014 Objects.requireNonNull(function);
1022 entry.value = function.apply((K)WeakHashMap.unmaskNull(key), entry.value);
H A DHashMap.java30 import java.util.function.BiFunction;
31 import java.util.function.Consumer;
32 import java.util.function.BiConsumer;
44 * operations (<tt>get</tt> and <tt>put</tt>), assuming the hash function
1371 public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { argument
1373 if (function == null)
1379 e.value = function.apply(e.key, e.value);
/libcore/ojluni/src/main/native/
H A Djvm.h325 * This function has been deprecated and should not be considered
618 jstring function; member in struct:__anon23
968 * A function defined by the byte-code verifier and called by the VM.
969 * This is not a function implemented in the VM.
1012 /* This is the function defined in libjava.so that performs class
1065 * This is the function defined in libjava.so to perform path
1066 * canonicalization. VM call this function before opening jar files
1115 * Convert a pathname into native format. This function does syntactic
1128 * Open a file descriptor. This function returns a negative error code
1136 * Close a file descriptor. This function return
[all...]

Completed in 319 milliseconds

1234