Package com.exedio.cope.pattern
Class RangeField<E extends Comparable<E>>
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.RangeField<E>
- All Implemented Interfaces:
Settable<Range<E>>,Serializable
public final class RangeField<E extends Comparable<E>>
extends Pattern
implements Settable<Range<E>>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Comparable<E>>
RangeField<E>create(FunctionField<E> borderTemplate) booleandoesContain(Item item, E value) SetValue<?>[]getFrom()Returns the exceptions possibly thrown, when setting a value for this settable.getTo()booleanisFinal()Returns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later.booleanReturns true, if a value for the settable should be specified on the creation of an item.booleanstatic <E extends Comparable<E>>
RangeField<E>newRange(FunctionField<E> borderTemplate) Deprecated.voidvoidvoidMethods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, onMount, registerSourceMethods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
Method Details
-
create
-
getFrom
-
getTo
-
getUnison
-
get
-
set
-
getFrom
-
getTo
-
setFrom
-
setTo
-
doesContain
-
contains
-
execute
- Specified by:
executein interfaceSettable<E extends Comparable<E>>
-
isFinal
public boolean isFinal()Description copied from interface:SettableReturns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later.- Specified by:
isFinalin interfaceSettable<E extends Comparable<E>>
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceSettable<E extends Comparable<E>>
-
getInitialType
- Specified by:
getInitialTypein interfaceSettable<E extends Comparable<E>>
-
isInitial
public boolean isInitial()Description copied from interface:SettableReturns true, if a value for the settable should be specified on the creation of an item.- Specified by:
isInitialin interfaceSettable<E extends Comparable<E>>
-
getInitialExceptions
Description copied from interface:SettableReturns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptionsin interfaceSettable<E extends Comparable<E>>
-
newRange
@Deprecated public static <E extends Comparable<E>> RangeField<E> newRange(FunctionField<E> borderTemplate) Deprecated.Usecreate(FunctionField)instead
-
create(FunctionField)instead