java.lang.Object
swim.structure.Item
swim.structure.Field
- All Implemented Interfaces:
Comparable<Item>,Iterable<Item>,Map.Entry<Value,,Value> Debug,Display
-
Method Summary
Modifier and TypeMethodDescriptionfinal Valuebody()Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have any non-first members to flatten, and because aFieldisn't a distinctValue, so it can't returnExtant.final booleanConverts the value of thisFieldinto a primitivebooleanvalue, if possible.final booleanbooleanValue(boolean orElse) Converts the value of thisFieldinto a primitivebooleanvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivebooleanvalue.abstract Fieldbranch()final byteConverts the value of thisFieldinto a primitivebytevalue, if possible.final bytebyteValue(byte orElse) Converts the value of thisFieldinto a primitivebytevalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivebytevalue.final charConverts the value of thisFieldinto a primitivecharvalue, if possible.final charcharValue(char orElse) Converts the value of thisFieldinto a primitivecharvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivecharvalue.abstract Fieldcommit()conditional(Field thenTerm, Field elseTerm) conditional(Item thenTerm, Item elseTerm) final booleanAlways returnsfalsebecause aFieldcan't be aRecord, so it can't have a member equal toitem.final booleancontainsKey(String key) Always returnsfalsebecause aFieldcan't be aRecord, so it can't have aFieldmember whose key string is equal to the givenkey.final booleancontainsKey(Value key) Always returnsfalsebecause aFieldcan't be aRecord, so it can't have aFieldmember whose key is equal to the givenkey.final booleancontainsValue(Value value) Always returnsfalsebecause aFieldcan't be aRecord, so it can't have aFieldmember whose value is equal to the givenvalue.final doubleConverts the value of thisFieldinto a primitivedoublevalue, if possible.final doubledoubleValue(double orElse) Converts the value of thisFieldinto a primitivedoublevalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivedoublevalue.final Valuefinal floatConverts the value of thisFieldinto a primitivefloatvalue, if possible.final floatfloatValue(float orElse) Converts the value of thisFieldinto a primitivefloatvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivefloatvalue.final ValueAlways returnsAbsentbecause aFieldcan't be aRecord, so it can't have aFieldmember whose key string is equal to the givenkey.final ValueAlways returnsAbsentbecause aFieldcan't be aRecord, so it can't have aFieldmember whose key is equal to the givenkey.final ValueAlways returnsAbsentbecause aFieldcan't be aRecord, so it can't have anAttrmember whose key string is equal to the givenkey.final ValueAlways returnsAbsentbecause aFieldcan't be aRecord, so it can't have anAttrmember whose key is equal to the givenkey.final FieldAlways returnsnullbecause aFieldcan't be aRecord, so it can't have aFieldmember whose key string is equal to the givenkey.final FieldAlways returnsnullbecause aFieldcan't be aRecord, so it can't have aFieldmember whose key is equal to the givenkey.final ItemgetItem(int index) Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have a member at the givenindex.getKey()Returns the key component of thisField.final ValueAlways returnsAbsentbecause aFieldcan't be aRecord, so it can't have aSlotmember whose key string is equal to the givenkey.final ValueAlways returnsAbsentbecause aFieldcan't be aRecord, so it can't have aSlotmember whose key is equal to the givenkey.getValue()Returns the value component of thisField.final Itemhead()final ValueAlways returnsAbsentbecause aFieldcan't be aRecord, so it can't have a headAttrwhose value could be returned if its key were equal to thetag.final RecordAlways returnsnullbecause aFieldcan't be aRecord, so it can't have a headAttrwhose value could be returned as aRecordif its key is equal to thetag.final BigIntegerConverts the value of thisFieldinto aBigIntegervalue, if possible.final BigIntegerintegerValue(BigInteger orElse) Converts the value of thisFieldinto aBigIntegervalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into aBigIntegervalue.final intintValue()Converts the value of thisFieldinto a primitiveintvalue, if possible.final intintValue(int orElse) Converts the value of thisFieldinto a primitiveintvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitiveintvalue.final booleanbooleanAlways returnstruebecause aFieldcannot be one of: an emptyRecord,False,Extant, orAbsent.final booleanabstract Valuekey()Returns the key component of thisField.final intlength()Always returns0because aFieldcan't be aRecord, so it can't contain any members.final longConverts the value of thisFieldinto a primitivelongvalue, if possible.final longlongValue(long orElse) Converts the value of thisFieldinto a primitivelongvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivelongvalue.final NumberConverts the value of thisFieldinto aNumberobject, if possible.final NumbernumberValue(Number orElse) Converts the value of thisFieldinto aNumberobject, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into aNumberobject.static Fieldabstract ValueSets the value of thisFieldto the newvalue, returning the old value.final shortConverts the value of thisFieldinto a primitiveshortvalue, if possible.final shortshortValue(short orElse) Converts the value of thisFieldinto a primitiveshortvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitiveshortvalue.final StringConverts the value of thisFieldinto aStringvalue, if possible.final StringstringValue(String orElse) Converts the value of thisFieldinto aStringvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into astringvalue.final Stringtag()Always returnsnullbecause aFieldcan't be aRecord, so it can't have a first memberAttrwhose key string could be returned.final Recordtail()Always returns an emptyRecordbecause aFieldcan't itself be aRecord, so it can't have any non-first members.final Valuetarget()Always returns the value component of thisField.toValue()Returns the value component of thisField.final RecordReturns aRecordcontaining just thisField.abstract FieldupdatedValue(Value value) Returns a copy of thisFieldwith the updatedvalue.abstract Valuevalue()Returns the value component of thisField.Methods inherited from class swim.structure.Item
absent, alias, appended, appended, appended, appended, appended, appended, appended, appended, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseXor, cast, cast, coerce, coerce, compareTo, concat, debug, display, divide, empty, eq, equals, evaluate, evaluate, extant, filter, filter, fromObject, ge, globalScope, gt, hashCode, inverse, invoke, isAliased, isConstant, isMutable, iterator, keyEquals, le, lt, max, min, minus, modulo, ne, negative, not, plus, positive, precedence, prepended, prepended, prepended, prepended, prepended, prepended, prepended, prepended, substitute, substitute, times, toString, typeOrder, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlotMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
isDefined
public final boolean isDefined() -
isDistinct
public final boolean isDistinct()- Specified by:
isDistinctin classItem
-
isDefinite
public boolean isDefinite()Always returnstruebecause aFieldcannot be one of: an emptyRecord,False,Extant, orAbsent.- Specified by:
isDefinitein classItem
-
key
Returns the key component of thisField. -
getKey
Returns the key component of thisField. Equivalent tokey(). -
value
Returns the value component of thisField. -
getValue
Returns the value component of thisField. Equivalent tovalue(). -
setValue
Sets the value of thisFieldto the newvalue, returning the old value.- Specified by:
setValuein interfaceMap.Entry<Value,Value> - Throws:
UnsupportedOperationException- if thisFieldis immutable.
-
updatedValue
Returns a copy of thisFieldwith the updatedvalue. -
toValue
Returns the value component of thisField. Equivalent tovalue(). -
tag
Always returnsnullbecause aFieldcan't be aRecord, so it can't have a first memberAttrwhose key string could be returned. -
target
Always returns the value component of thisField. -
flattened
-
unflattened
Returns aRecordcontaining just thisField.- Specified by:
unflattenedin classItem
-
header
Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have a headAttrwhose value could be returned if its key were equal to thetag. -
headers
Always returnsnullbecause aFieldcan't be aRecord, so it can't have a headAttrwhose value could be returned as aRecordif its key is equal to thetag. -
head
-
tail
Always returns an emptyRecordbecause aFieldcan't itself be aRecord, so it can't have any non-first members. -
body
Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have any non-first members to flatten, and because aFieldisn't a distinctValue, so it can't returnExtant. -
length
public final int length()Always returns0because aFieldcan't be aRecord, so it can't contain any members. -
contains
Always returnsfalsebecause aFieldcan't be aRecord, so it can't have a member equal toitem. -
containsKey
Always returnsfalsebecause aFieldcan't be aRecord, so it can't have aFieldmember whose key is equal to the givenkey.- Specified by:
containsKeyin classItem
-
containsKey
Always returnsfalsebecause aFieldcan't be aRecord, so it can't have aFieldmember whose key string is equal to the givenkey.- Specified by:
containsKeyin classItem
-
containsValue
Always returnsfalsebecause aFieldcan't be aRecord, so it can't have aFieldmember whose value is equal to the givenvalue.- Specified by:
containsValuein classItem
-
get
Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have aFieldmember whose key is equal to the givenkey. -
get
Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have aFieldmember whose key string is equal to the givenkey. -
getAttr
Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have anAttrmember whose key is equal to the givenkey. -
getAttr
Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have anAttrmember whose key string is equal to the givenkey. -
getSlot
Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have aSlotmember whose key is equal to the givenkey. -
getSlot
Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have aSlotmember whose key string is equal to the givenkey. -
getField
Always returnsnullbecause aFieldcan't be aRecord, so it can't have aFieldmember whose key is equal to the givenkey. -
getField
Always returnsnullbecause aFieldcan't be aRecord, so it can't have aFieldmember whose key string is equal to the givenkey. -
getItem
Always returnsAbsentbecause aFieldcan't be aRecord, so it can't have a member at the givenindex. -
removed
-
removed
-
conditional
- Specified by:
conditionalin classItem
-
conditional
-
or
-
or
-
and
-
and
-
lambda
-
stringValue
Converts the value of thisFieldinto aStringvalue, if possible.- Specified by:
stringValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into aStringvalue.
-
stringValue
Converts the value of thisFieldinto aStringvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into astringvalue.- Specified by:
stringValuein classItem
-
byteValue
public final byte byteValue()Converts the value of thisFieldinto a primitivebytevalue, if possible.- Specified by:
byteValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into a primitivebytevalue.
-
byteValue
public final byte byteValue(byte orElse) Converts the value of thisFieldinto a primitivebytevalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivebytevalue. -
shortValue
public final short shortValue()Converts the value of thisFieldinto a primitiveshortvalue, if possible.- Specified by:
shortValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into a primitiveshortvalue.
-
shortValue
public final short shortValue(short orElse) Converts the value of thisFieldinto a primitiveshortvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitiveshortvalue.- Specified by:
shortValuein classItem
-
intValue
public final int intValue()Converts the value of thisFieldinto a primitiveintvalue, if possible.- Specified by:
intValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into a primitiveintvalue.
-
intValue
public final int intValue(int orElse) Converts the value of thisFieldinto a primitiveintvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitiveintvalue. -
longValue
public final long longValue()Converts the value of thisFieldinto a primitivelongvalue, if possible.- Specified by:
longValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into a primitivelongvalue.
-
longValue
public final long longValue(long orElse) Converts the value of thisFieldinto a primitivelongvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivelongvalue. -
floatValue
public final float floatValue()Converts the value of thisFieldinto a primitivefloatvalue, if possible.- Specified by:
floatValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into a primitivefloatvalue.
-
floatValue
public final float floatValue(float orElse) Converts the value of thisFieldinto a primitivefloatvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivefloatvalue.- Specified by:
floatValuein classItem
-
doubleValue
public final double doubleValue()Converts the value of thisFieldinto a primitivedoublevalue, if possible.- Specified by:
doubleValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into a primitivedoublevalue.
-
doubleValue
public final double doubleValue(double orElse) Converts the value of thisFieldinto a primitivedoublevalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivedoublevalue.- Specified by:
doubleValuein classItem
-
integerValue
Converts the value of thisFieldinto aBigIntegervalue, if possible.- Specified by:
integerValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into aBigIntegervalue.
-
integerValue
Converts the value of thisFieldinto aBigIntegervalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into aBigIntegervalue.- Specified by:
integerValuein classItem
-
numberValue
Converts the value of thisFieldinto aNumberobject, if possible.- Specified by:
numberValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into aNumberobject.
-
numberValue
Converts the value of thisFieldinto aNumberobject, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into aNumberobject.- Specified by:
numberValuein classItem
-
charValue
public final char charValue()Converts the value of thisFieldinto a primitivecharvalue, if possible.- Specified by:
charValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into a primitivecharvalue.
-
charValue
public final char charValue(char orElse) Converts the value of thisFieldinto a primitivecharvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivecharvalue. -
booleanValue
public final boolean booleanValue()Converts the value of thisFieldinto a primitivebooleanvalue, if possible.- Specified by:
booleanValuein classItem- Throws:
UnsupportedOperationException- if the value of thisFieldcan't be converted into a primitivebooleanvalue.
-
booleanValue
public final boolean booleanValue(boolean orElse) Converts the value of thisFieldinto a primitivebooleanvalue, if possible; otherwise returnsorElseif the value of thisFieldcan't be converted into a primitivebooleanvalue.- Specified by:
booleanValuein classItem
-
branch
-
commit
Description copied from class:Item -
of
-