java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Record
swim.dataflow.AbstractRecordOutlet
swim.api.downlink.DownlinkRecord
swim.api.downlink.ListDownlinkRecord
- All Implemented Interfaces:
Comparable<Item>
,Iterable<Item>
,Collection<Item>
,List<Item>
,Debug
,Display
,RecordOutlet
,MapOutlet<Value,
,Value, Record> Outlet<Record>
,StreamletScope<Value>
,Builder<Item,
,Record> PairBuilder<Value,
Value, Record>
-
Field Summary
Fields inherited from class swim.dataflow.AbstractRecordOutlet
effects, outlets, outputs, version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
Adds a single input value to this builder, returningtrue
if the state of the builder changed.void
clear()
boolean
containsKey
(String key) Returnstrue
if thisRecord
has aField
member with a key that is equal to the givenkey
; otherwise returnsfalse
if thisRecord
has noField
member with a key equal to the givenkey
.boolean
containsKey
(Value key) Returnstrue
if thisRecord
has aField
member with a key that is equal to the givenkey
; otherwise returnsfalse
if thisRecord
has noField
member with a key equal to the givenkey
.downlink()
get
(int index) Returns the member of thisRecord
at the givenindex
, if theindex
is greater than or equal to zero, and less than thelength
of thisRecord
.getItem
(int index) boolean
isArray()
boolean
isEmpty()
Returnstrue
if thisRecord
has no members.boolean
isObject()
Returns anIterator
over the keys in the current state of thisMapOutlet
.remove
(int index) boolean
boolean
Replaces the member of thisRecord
at the givenindex
with a newitem
, returning the previousItem
at the givenindex
, if theindex
is greater than or equal to zero, and less than thelength
of thisRecord
.int
size()
Returns the number of members contained in thisRecord
.Methods inherited from class swim.dataflow.AbstractRecordOutlet
bindOutput, containsOwnKey, decohereInput, decohereInputKey, didDecohereInput, didDecohereInputKey, didRecohereInput, didRecohereInputKey, disconnectInputs, disconnectOutputs, get, onDecohereInput, onDecohereInputKey, onRecohereInput, onRecohereInputKey, outlet, outlet, outputIterator, recohereInput, recohereInputKey, streamletContext, streamletScope, unbindOutput, unbindOutputs, willDecohereInput, willDecohereInputKey, willRecohereInput, willRecohereInputKey
Methods inherited from class swim.structure.Record
add, add, add, add, add, add, add, add, add, add, add, add, add, addAll, addAll, alias, appended, appended, asMutable, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, bind, body, branch, commit, compareTo, compareTo, concat, contains, contains, containsAll, containsValue, create, create, debug, empty, entrySet, equals, evaluate, fieldCount, fieldIterator, fieldSet, flattened, getField, getField, hashCode, head, header, headers, indexOf, isAliased, isConstant, isDefinite, isMutable, item, item, item, item, item, item, item, iterator, keySet, lastIndexOf, length, listIterator, listIterator, of, of, of, prepended, prepended, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, remove, removeAll, removed, removed, retainAll, set, setItem, setItem, setItem, setItem, setItem, setItem, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, stringValue, stringValue, subList, substitute, tag, tail, target, toArray, toArray, typeOrder, unflattened, updated, updated, updatedAttr, updatedAttr, updatedSlot, updatedSlot, valueCount, valueIterator, values
Methods inherited from class swim.structure.Value
absent, and, and, bitwiseAnd, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, booleanValue, booleanValue, builder, byteValue, byteValue, charValue, charValue, conditional, conditional, divide, divide, doubleValue, doubleValue, eq, eq, extant, floatValue, floatValue, fromObject, ge, ge, gt, gt, integerValue, integerValue, intValue, intValue, inverse, isDefined, isDistinct, key, keyEquals, lambda, le, le, longValue, longValue, lt, lt, minus, minus, modulo, modulo, ne, ne, negative, not, numberValue, numberValue, or, or, plus, plus, positive, shortValue, shortValue, times, times, toValue
Methods inherited from class swim.structure.Item
appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, display, evaluate, filter, filter, globalScope, invoke, max, min, precedence, prepended, prepended, prepended, prepended, prepended, prepended, substitute, toString, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Field Details
-
downlink
-
-
Constructor Details
-
ListDownlinkRecord
-
-
Method Details
-
downlink
- Specified by:
downlink
in classDownlinkRecord
-
isEmpty
public boolean isEmpty()Description copied from class:Record
Returnstrue
if thisRecord
has no members. -
isArray
public boolean isArray()Description copied from class:Record
-
isObject
public boolean isObject()Description copied from class:Record
-
size
public int size()Description copied from class:Record
Returns the number of members contained in thisRecord
. -
containsKey
Description copied from class:Record
Returnstrue
if thisRecord
has aField
member with a key that is equal to the givenkey
; otherwise returnsfalse
if thisRecord
has noField
member with a key equal to the givenkey
.- Specified by:
containsKey
in interfaceMapOutlet<Value,
Value, Record> - Overrides:
containsKey
in classRecord
-
containsKey
Description copied from class:Record
Returnstrue
if thisRecord
has aField
member with a key that is equal to the givenkey
; otherwise returnsfalse
if thisRecord
has noField
member with a key equal to the givenkey
. Equivalent toRecord.containsKey(Value)
, but avoids boxing thekey
string into aText
value.- Overrides:
containsKey
in classRecord
-
get
Description copied from class:Record
-
get
Description copied from class:Record
Returns the value of the lastField
member of thisRecord
whose key is equal to the givenkey
; returnsAbsent
if thisRecord
has noField
member with a key equal to the givenkey
. Equivalent toRecord.get(Value)
, but avoids boxing thekey
string into aText
value. -
getAttr
Description copied from class:Record
-
getAttr
Description copied from class:Record
Returns the value of the lastAttr
member of thisRecord
whose key is equal to the givenkey
; returnsAbsent
if thisRecord
has noAttr
member with a key equal to the givenkey
. Equivalent toRecord.getAttr(Text)
, but avoids boxing thekey
string into aText
value. -
getSlot
Description copied from class:Record
-
getSlot
Description copied from class:Record
Returns the value of the lastSlot
member of thisRecord
whose key is equal to the givenkey
; returnsAbsent
if thisRecord
has noSlot
member with a key equal to the givenkey
. Equivalent toRecord.getSlot(Value)
, but avoids boxing thekey
string into aText
value. -
get
Description copied from class:Record
Returns the member of thisRecord
at the givenindex
, if theindex
is greater than or equal to zero, and less than thelength
of thisRecord
. -
getItem
Description copied from class:Record
-
put
-
put
-
putAttr
-
putAttr
-
putSlot
-
putSlot
-
setItem
Description copied from class:Record
Replaces the member of thisRecord
at the givenindex
with a newitem
, returning the previousItem
at the givenindex
, if theindex
is greater than or equal to zero, and less than thelength
of thisRecord
. -
add
Description copied from interface:Builder
Adds a single input value to this builder, returningtrue
if the state of the builder changed. -
add
-
remove
-
removeKey
-
removeKey
-
clear
public void clear() -
keyIterator
Description copied from interface:MapOutlet
Returns anIterator
over the keys in the current state of thisMapOutlet
.- Specified by:
keyIterator
in interfaceMapOutlet<Value,
Value, Record> - Specified by:
keyIterator
in classAbstractRecordOutlet
-