Top Description Fields Constructors Methods
org.eclipse.collections.impl.block.function.primitive

public Class ByteCaseFunction<V>

extends Object
implements ByteToObjectFunction<V>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction, java.io.Serializable
Imports
org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BytePredicate, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.Pair, org.eclipse.collections.impl.factory.Lists, org.eclipse.collections.impl.tuple.Tuples

This file was automatically generated from template file primitiveCaseFunction.stg.

Field Summary

Modifier and TypeField and Description
private ByteToObjectFunction<? extends V>
private final MutableList<Pair<BytePredicate, ByteToObjectFunction<? extends V>>>
private static final long

Constructor Summary

AccessConstructor and Description
public
public
ByteCaseFunction(ByteToObjectFunction<? extends V> newDefaultFunction)

Method Summary

Modifier and TypeMethod and Description
public ByteCaseFunction<V>
addCase(BytePredicate predicate, ByteToObjectFunction<? extends V> function)

public ByteCaseFunction<V>
setDefault(ByteToObjectFunction<? extends V> function)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public V
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

defaultFunctionback to summary
private ByteToObjectFunction<? extends V> defaultFunction
predicateFunctionsback to summary
private final MutableList<Pair<BytePredicate, ByteToObjectFunction<? extends V>>> predicateFunctions
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ByteCaseFunctionback to summary
public ByteCaseFunction()
ByteCaseFunctionback to summary
public ByteCaseFunction(ByteToObjectFunction<? extends V> newDefaultFunction)

Method Detail

addCaseback to summary
public ByteCaseFunction<V> addCase(BytePredicate predicate, ByteToObjectFunction<? extends V> function)
setDefaultback to summary
public ByteCaseFunction<V> setDefault(ByteToObjectFunction<? extends V> function)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
valueOfback to summary
public V valueOf(byte argument)

Implements org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction.valueOf.

Annotations
@Override