Class Functions
- java.lang.Object
-
- com.apollographql.apollo.api.internal.Functions
-
public class Functions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Functions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> Function<E,E>identity()Returns the identity function.static Function<java.lang.Object,java.lang.String>toStringFunction()Returns a function that callstoString()on its argument.
-
-
-
Method Detail
-
identity
public static <E> Function<E,E> identity()
Returns the identity function.
-
toStringFunction
public static Function<java.lang.Object,java.lang.String> toStringFunction()
Returns a function that callstoString()on its argument. The function does not accept nulls; it will throw aNullPointerExceptionwhen applied tonull.Warning: The returned function may not be consistent with equals (as documented at
Function.apply(T)). For example, this function yields different results for the two equal instancesImmutableSet.of(1, 2)andImmutableSet.of(2, 1).
-
-