| Modifier and Type | Method and Description |
|---|---|
static org.forgerock.util.Function<ByteString,AttributeDescription,org.forgerock.util.promise.NeverThrowsException> |
byteStringToAttributeDescription()
Returns a function which parses
AttributeDescriptions using the
default schema. |
static org.forgerock.util.Function<ByteString,AttributeDescription,org.forgerock.util.promise.NeverThrowsException> |
byteStringToAttributeDescription(Schema schema)
Returns a function which parses
AttributeDescriptions using the
provided schema. |
static org.forgerock.util.Function<ByteString,Boolean,org.forgerock.util.promise.NeverThrowsException> |
byteStringToBoolean()
Returns a function which parses
Boolean values. |
static org.forgerock.util.Function<ByteString,DN,org.forgerock.util.promise.NeverThrowsException> |
byteStringToDN()
Returns a function which parses
DNs using the default schema. |
static org.forgerock.util.Function<ByteString,DN,org.forgerock.util.promise.NeverThrowsException> |
byteStringToDN(Schema schema)
Returns a function which parses
DNs using the provided schema. |
static org.forgerock.util.Function<ByteString,GeneralizedTime,org.forgerock.util.promise.NeverThrowsException> |
byteStringToGeneralizedTime()
Returns a function which parses generalized time strings.
|
static org.forgerock.util.Function<ByteString,Integer,org.forgerock.util.promise.NeverThrowsException> |
byteStringToInteger()
Returns a function which parses
Integer string values. |
static org.forgerock.util.Function<ByteString,Long,org.forgerock.util.promise.NeverThrowsException> |
byteStringToLong()
Returns a function which parses
Long string values. |
static org.forgerock.util.Function<ByteString,String,org.forgerock.util.promise.NeverThrowsException> |
byteStringToString()
Returns a function which parses a
ByteString as a UTF-8 encoded
String. |
static <M,X,N> org.forgerock.util.Function<M,N,org.forgerock.util.promise.NeverThrowsException> |
compose(org.forgerock.util.Function<M,X,org.forgerock.util.promise.NeverThrowsException> first,
org.forgerock.util.Function<X,N,org.forgerock.util.promise.NeverThrowsException> second)
Returns the composition of two functions.
|
static <M> org.forgerock.util.Function<M,M,org.forgerock.util.promise.NeverThrowsException> |
identityFunction()
Returns a function which always returns the value that it was provided
with.
|
static org.forgerock.util.Function<String,String,org.forgerock.util.promise.NeverThrowsException> |
normalizeString()
Returns a function which converts a
String to lower case using
StaticUtils.toLowerCase(org.forgerock.opendj.ldap.ByteSequence, java.lang.StringBuilder) and then trims it. |
static org.forgerock.util.Function<Object,ByteString,org.forgerock.util.promise.NeverThrowsException> |
objectToByteString()
Returns a function which converts an
Object to a
ByteString using the ByteString.valueOf(Object) method. |
static org.forgerock.util.Function<String,AttributeDescription,org.forgerock.util.promise.NeverThrowsException> |
stringToAttributeDescription()
Returns a function which parses
AttributeDescriptions using the
default schema. |
static org.forgerock.util.Function<String,AttributeDescription,org.forgerock.util.promise.NeverThrowsException> |
stringToAttributeDescription(Schema schema)
Returns a function which parses
AttributeDescriptions using the
provided schema. |
static org.forgerock.util.Function<String,Boolean,org.forgerock.util.promise.NeverThrowsException> |
stringToBoolean()
Returns a function which parses
Boolean values. |
static org.forgerock.util.Function<String,DN,org.forgerock.util.promise.NeverThrowsException> |
stringToDN()
Returns a function which parses
DNs using the default schema. |
static org.forgerock.util.Function<String,DN,org.forgerock.util.promise.NeverThrowsException> |
stringToDN(Schema schema)
Returns a function which parses
DNs using the provided schema. |
static org.forgerock.util.Function<String,GeneralizedTime,org.forgerock.util.promise.NeverThrowsException> |
stringToGeneralizedTime()
Returns a function which parses generalized time strings.
|
static org.forgerock.util.Function<String,Integer,org.forgerock.util.promise.NeverThrowsException> |
stringToInteger()
Returns a function which parses
Integer string values. |
static org.forgerock.util.Function<String,Long,org.forgerock.util.promise.NeverThrowsException> |
stringToLong()
Returns a function which parses
Long string values. |
public static <M,X,N> org.forgerock.util.Function<M,N,org.forgerock.util.promise.NeverThrowsException> compose(org.forgerock.util.Function<M,X,org.forgerock.util.promise.NeverThrowsException> first, org.forgerock.util.Function<X,N,org.forgerock.util.promise.NeverThrowsException> second)
M - The type of input values transformed by this function.N - The type of output values returned by this function.X - The type of intermediate values passed between the two
functions.first - The first function which will consume the input.second - The second function which will produce the result.public static <M> org.forgerock.util.Function<M,M,org.forgerock.util.promise.NeverThrowsException> identityFunction()
M - The type of values transformed by this function.public static org.forgerock.util.Function<String,String,org.forgerock.util.promise.NeverThrowsException> normalizeString()
String to lower case using
StaticUtils.toLowerCase(org.forgerock.opendj.ldap.ByteSequence, java.lang.StringBuilder) and then trims it.String to lower case using
StaticUtils.toLowerCase(org.forgerock.opendj.ldap.ByteSequence, java.lang.StringBuilder) and then trims it.public static org.forgerock.util.Function<Object,ByteString,org.forgerock.util.promise.NeverThrowsException> objectToByteString()
Object to a
ByteString using the ByteString.valueOf(Object) method.Object to a
ByteString .public static org.forgerock.util.Function<String,AttributeDescription,org.forgerock.util.promise.NeverThrowsException> stringToAttributeDescription()
AttributeDescriptions using the
default schema. Invalid values will result in a
LocalizedIllegalArgumentException.AttributeDescriptions.public static org.forgerock.util.Function<String,AttributeDescription,org.forgerock.util.promise.NeverThrowsException> stringToAttributeDescription(Schema schema)
AttributeDescriptions using the
provided schema. Invalid values will result in a
LocalizedIllegalArgumentException.schema - The schema to use for decoding attribute descriptions.AttributeDescriptions.public static org.forgerock.util.Function<String,Boolean,org.forgerock.util.promise.NeverThrowsException> stringToBoolean()
Boolean values. The function will
accept the values 0, false, no, off,
1, true, yes, on. All other values will
result in a NumberFormatException.Boolean values.public static org.forgerock.util.Function<String,DN,org.forgerock.util.promise.NeverThrowsException> stringToDN()
DNs using the default schema.
Invalid values will result in a LocalizedIllegalArgumentException
.DNs.public static org.forgerock.util.Function<String,DN,org.forgerock.util.promise.NeverThrowsException> stringToDN(Schema schema)
DNs using the provided schema.
Invalid values will result in a LocalizedIllegalArgumentException
.schema - The schema to use for decoding DNs.DNs.public static org.forgerock.util.Function<String,GeneralizedTime,org.forgerock.util.promise.NeverThrowsException> stringToGeneralizedTime()
LocalizedIllegalArgumentException.public static org.forgerock.util.Function<String,Integer,org.forgerock.util.promise.NeverThrowsException> stringToInteger()
Integer string values. Invalid
values will result in a LocalizedIllegalArgumentException.Integer string values.public static org.forgerock.util.Function<String,Long,org.forgerock.util.promise.NeverThrowsException> stringToLong()
Long string values. Invalid
values will result in a LocalizedIllegalArgumentException.Long string values.public static org.forgerock.util.Function<ByteString,AttributeDescription,org.forgerock.util.promise.NeverThrowsException> byteStringToAttributeDescription()
AttributeDescriptions using the
default schema. Invalid values will result in a
LocalizedIllegalArgumentException.AttributeDescriptions.public static org.forgerock.util.Function<ByteString,AttributeDescription,org.forgerock.util.promise.NeverThrowsException> byteStringToAttributeDescription(Schema schema)
AttributeDescriptions using the
provided schema. Invalid values will result in a
LocalizedIllegalArgumentException.schema - The schema to use for decoding attribute descriptions.AttributeDescriptions.public static org.forgerock.util.Function<ByteString,Boolean,org.forgerock.util.promise.NeverThrowsException> byteStringToBoolean()
Boolean values. The function will
accept the values 0, false, no, off,
1, true, yes, on. All other values will
result in a NumberFormatException.Boolean values.public static org.forgerock.util.Function<ByteString,DN,org.forgerock.util.promise.NeverThrowsException> byteStringToDN()
DNs using the default schema.
Invalid values will result in a LocalizedIllegalArgumentException
.DNs.public static org.forgerock.util.Function<ByteString,DN,org.forgerock.util.promise.NeverThrowsException> byteStringToDN(Schema schema)
DNs using the provided schema.
Invalid values will result in a LocalizedIllegalArgumentException
.schema - The schema to use for decoding DNs.DNs.public static org.forgerock.util.Function<ByteString,GeneralizedTime,org.forgerock.util.promise.NeverThrowsException> byteStringToGeneralizedTime()
LocalizedIllegalArgumentException.public static org.forgerock.util.Function<ByteString,Integer,org.forgerock.util.promise.NeverThrowsException> byteStringToInteger()
Integer string values. Invalid
values will result in a LocalizedIllegalArgumentException.Integer string values.public static org.forgerock.util.Function<ByteString,Long,org.forgerock.util.promise.NeverThrowsException> byteStringToLong()
Long string values. Invalid
values will result in a LocalizedIllegalArgumentException.Long string values.public static org.forgerock.util.Function<ByteString,String,org.forgerock.util.promise.NeverThrowsException> byteStringToString()
ByteString as a UTF-8 encoded
String.ByteString as a UTF-8 encoded String.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.