Class CodeItemImpl
java.lang.Object
com.iizix.prop.CodeItemImpl
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionCodeItemImpl(KString value) Constructor for an item without code.CodeItemImpl(String value) Constructor for an item without code.CodeItemImpl(String code, KString value) Constructor for an item with code and value.CodeItemImpl(String code, String value) Constructor for an item with code and value.Method Summary
Modifier and TypeMethodDescriptionclone()Clones the instance.booleanChecks for equality.getCode()Gets the code string.Gets the item text as a KString.Gets the item text as a String.getValue()Gets the value.booleanhasCode()Checks if this item has a code.booleanReturns whether the item is a KString or not.
Constructor Details
CodeItemImpl
Constructor for an item without code.- Parameters:
value- The item value, never null.- Throws:
NullPointerException- If item value is null.
CodeItemImpl
Constructor for an item with code and value.- Parameters:
code- The code, perhaps null for none.value- The item value, never null.- Throws:
NullPointerException- If item value is null.
CodeItemImpl
Constructor for an item without code.- Parameters:
value- The item value, never null.- Throws:
NullPointerException- If item value is null.
CodeItemImpl
Constructor for an item with code and value.- Parameters:
code- The code, perhaps null for none.value- The item value, never null.- Throws:
NullPointerException- If item value is null.
Method Details
clone
Clones the instance.equals
hasCode
isKString
getCode
getString
getKString
Gets the item text as a KString.- Specified by:
getKStringin interfaceICodeItem- Returns:
- The item KString, potentially converted from String.
getValue