Class Value.ValueType<A>
- java.lang.Object
-
- org.opencastproject.assetmanager.api.Value.ValueType<A>
-
- Type Parameters:
A- the type to give evidence of
- Direct Known Subclasses:
Value.BooleanType,Value.DateType,Value.LongType,Value.StringType,Value.UntypedType,Value.VersionType
- Enclosing class:
- Value
public abstract static class Value.ValueType<A> extends Object
ValueType gives evidence that typeAis suitable for the creation of aValue.This is a more advanced version of the usual
Class<A>idiom. AValueTypeis also a constructor forValue.TypedValues of the same typeA.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <B> Bmatch(com.entwinemedia.fn.P1<? extends B> stringType, com.entwinemedia.fn.P1<? extends B> dateType, com.entwinemedia.fn.P1<? extends B> longType, com.entwinemedia.fn.P1<? extends B> booleanType, com.entwinemedia.fn.P1<? extends B> versionType)abstract Value.TypedValue<A>mk(A a)
-
-
-
Method Detail
-
mk
public abstract Value.TypedValue<A> mk(A a)
-
match
public abstract <B> B match(com.entwinemedia.fn.P1<? extends B> stringType, com.entwinemedia.fn.P1<? extends B> dateType, com.entwinemedia.fn.P1<? extends B> longType, com.entwinemedia.fn.P1<? extends B> booleanType, com.entwinemedia.fn.P1<? extends B> versionType)
-
-