Package com.exedio.cope
Class DoubleField
- All Implemented Interfaces:
Copyable,Function<Double>,NumberFunction<Double>,Selectable<Double>,Settable<Double>,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a condition, that is true for all items, if and only if the value of this function for that item is equal to the given parameter.Returns the exceptions possibly thrown, when setting a value for this settable.doublegetMandatory(Item item) doubledoublecom.exedio.cope.SelectType<Double>max(double maximum) min(double minimum) Returns a new FunctionField that differs from this FunctionField by having nocopyFromfields set.optional()Returns a new Field, that differs from this Field by being optional.range(double minimum, double maximum) <P extends Item>
PsearchUnique(Class<P> typeClass, double value) Finds an item by it's unique fields.voidtoFinal()Returns a new Field, that differs from this Field by being final.unique()Returns a new FunctionField, that differs from this FunctionField by being unique.Methods inherited from class com.exedio.cope.NumberField
avgMethods inherited from class com.exedio.cope.FunctionField
addCopyFrom, append, appendSelect, check, copy, copyFunctionField, get, get, getDefaultConstant, getImplicitCopyConstraint, getImplicitCopyConstraints, getImplicitUniqueConstraint, getUniqueConstraints, hasDefault, isInitial, isRedundantByCopyConstraint, searchUnique, searchUnique, searchUniqueStrict, setMethods inherited from class com.exedio.cope.Field
castCollection, check, execute, getColumnName, getInitialType, getPatterns, getValueClass, isFinal, isMandatory, mapNullMethods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, getType, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.exedio.cope.Function
any, between, equal, equal, get, get, greater, greater, greaterOrEqual, greaterOrEqual, in, in, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqualMethods inherited from interface com.exedio.cope.NumberFunction
asString, average, bind, divide, minus, multiply, multiply, plus, plus, sum, sumMethods inherited from interface com.exedio.cope.Selectable
append, appendSelect, check, getType, getValueClass, toString
-
Constructor Details
-
DoubleField
public DoubleField()
-
-
Method Details
-
copy
- Specified by:
copyin classFunctionField<Double>
-
toFinal
Description copied from class:FieldReturns a new Field, that differs from this Field by being final. If this Field is already final, the the result is equal to this Field.- Specified by:
toFinalin classFunctionField<Double>- See Also:
-
optional
Description copied from class:FieldReturns a new Field, that differs from this Field by being optional. If this Field is already optional, the the result is equal to this Field.- Specified by:
optionalin classFunctionField<Double>- See Also:
-
unique
Description copied from class:FunctionFieldReturns a new FunctionField, that differs from this FunctionField by being unique. If this FunctionField is already unique, the the result is equal to this FunctionField.- Specified by:
uniquein classFunctionField<Double>- See Also:
-
nonUnique
- Specified by:
nonUniquein classFunctionField<Double>
-
copyFrom
- Specified by:
copyFromin classFunctionField<Double>- See Also:
-
noCopyFrom
Description copied from class:FunctionFieldReturns a new FunctionField that differs from this FunctionField by having nocopyFromfields set.- Specified by:
noCopyFromin classFunctionField<Double>
-
noDefault
- Specified by:
noDefaultin classFunctionField<Double>
-
defaultTo
- Specified by:
defaultToin classFunctionField<Double>
-
range
-
min
-
max
-
getMinimum
public double getMinimum() -
getMaximum
public double getMaximum() -
getInitialExceptions
Description copied from interface:SettableReturns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptionsin interfaceSettable<Double>- Overrides:
getInitialExceptionsin classFunctionField<Double>
-
getValueType
-
getMandatory
- Throws:
IllegalArgumentException- if this field is notmandatory.
-
set
-
searchUnique
Finds an item by it's unique fields.- Returns:
- null if there is no matching item.
- See Also:
-
equal
Description copied from interface:FunctionReturns a condition, that is true for all items, if and only if the value of this function for that item is equal to the given parameter. -
notEqual
-