Class BooleanAttributeType
- java.lang.Object
-
- ai.libs.jaicore.ml.core.dataset.attribute.primitive.BooleanAttributeType
-
- All Implemented Interfaces:
IAttributeType<java.lang.Boolean>,IPrimitiveAttributeType<java.lang.Boolean>,java.io.Serializable
public class BooleanAttributeType extends java.lang.Object implements IPrimitiveAttributeType<java.lang.Boolean>
The boolean attribute type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BooleanAttributeType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAttributeValue<java.lang.Boolean>buildAttributeValue(boolean value)IAttributeValue<java.lang.Boolean>buildAttributeValue(java.lang.Object value)Casts the value to the respective type and returns an attribute value with the creating attribute type as the referenced type.IAttributeValue<java.lang.Boolean>buildAttributeValue(java.lang.String stringDescription)Builds an attribute value object from a string description.java.lang.StringgetStringDescriptionOfDomain()booleanisValidValue(java.lang.Boolean value)Validates whether a value conforms to this type.
-
-
-
Method Detail
-
isValidValue
public boolean isValidValue(java.lang.Boolean value)
Description copied from interface:IAttributeTypeValidates whether a value conforms to this type.- Specified by:
isValidValuein interfaceIAttributeType<java.lang.Boolean>- Parameters:
value- The value to validated.- Returns:
- Returns true if the given value conforms
-
buildAttributeValue
public IAttributeValue<java.lang.Boolean> buildAttributeValue(java.lang.Object value)
Description copied from interface:IAttributeTypeCasts the value to the respective type and returns an attribute value with the creating attribute type as the referenced type.- Specified by:
buildAttributeValuein interfaceIAttributeType<java.lang.Boolean>- Parameters:
value- The value of the attribute.- Returns:
- An attribute value object holding the value of the attribute and referring to this attribute type.
-
buildAttributeValue
public IAttributeValue<java.lang.Boolean> buildAttributeValue(java.lang.String stringDescription)
Description copied from interface:IAttributeTypeBuilds an attribute value object from a string description. The attribute value references this attribute type.- Specified by:
buildAttributeValuein interfaceIAttributeType<java.lang.Boolean>- Parameters:
stringDescription- A String-format description of the attribute's value.- Returns:
- The attribute value object holding an attribute value interpreting the string description and referring to this attribute type.
-
buildAttributeValue
public IAttributeValue<java.lang.Boolean> buildAttributeValue(boolean value)
-
getStringDescriptionOfDomain
public java.lang.String getStringDescriptionOfDomain()
- Specified by:
getStringDescriptionOfDomainin interfaceIAttributeType<java.lang.Boolean>
-
-