- java.lang.Object
-
- de.haumacher.msgbuf.data.AbstractDataObject
-
- de.haumacher.msgbuf.graph.cmd.Command
-
- de.haumacher.msgbuf.graph.cmd.ListUpdate
-
- de.haumacher.msgbuf.graph.cmd.RemoveElement
-
- All Implemented Interfaces:
BinaryDataObject,DataObject,ReflectiveDataObject,Observable
public class RemoveElement extends ListUpdate
The removal of an element of a list value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.haumacher.msgbuf.graph.cmd.ListUpdate
ListUpdate.Visitor<R,A,E extends Throwable>
-
Nested classes/interfaces inherited from class de.haumacher.msgbuf.graph.cmd.Command
Command.TypeKind
-
-
Field Summary
Fields Modifier and Type Field Description static StringREMOVE_ELEMENT__TYPEIdentifier for theRemoveElementtype in JSON format.static intREMOVE_ELEMENT__TYPE_IDIdentifier for theRemoveElementtype in binary format.-
Fields inherited from class de.haumacher.msgbuf.graph.cmd.ListUpdate
INDEX, INDEX__ID, NEXT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoveElement()Creates aRemoveElementinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RemoveElementcreate()Creates aRemoveElementinstance.StringjsonType()The type identifier for this concrete sub-type.Command.TypeKindkind()The type code of this instance.static RemoveElementreadRemoveElement(DataReader in)Reads a new instance from the given reader.static RemoveElementreadRemoveElement(JsonReader in)Reads a new instance from the given reader.inttypeId()The binary identifier for this concrete type in the polymorphicCommandhierarchy.<R,A,E extends Throwable>
Rvisit(ListUpdate.Visitor<R,A,E> v, A arg)Accepts the given visitor.-
Methods inherited from class de.haumacher.msgbuf.graph.cmd.ListUpdate
get, getIndex, getNext, hasNext, properties, readField, readField, readListUpdate, readListUpdate, set, setIndex, setNext, visit, writeFields, writeFields
-
Methods inherited from class de.haumacher.msgbuf.graph.cmd.Command
getId, getNode, getProperty, hasNode, readCommand, readCommand, registerListener, setId, setNode, setProperty, unregisterListener, writeTo, writeTo
-
Methods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readFields, toString, writeContent
-
-
-
-
Field Detail
-
REMOVE_ELEMENT__TYPE
public static final String REMOVE_ELEMENT__TYPE
Identifier for theRemoveElementtype in JSON format.- See Also:
- Constant Field Values
-
REMOVE_ELEMENT__TYPE_ID
public static final int REMOVE_ELEMENT__TYPE_ID
Identifier for theRemoveElementtype in binary format.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RemoveElement
protected RemoveElement()
Creates aRemoveElementinstance.- See Also:
create()
-
-
Method Detail
-
create
public static RemoveElement create()
Creates aRemoveElementinstance.
-
kind
public Command.TypeKind kind()
Description copied from class:CommandThe type code of this instance.
-
jsonType
public String jsonType()
Description copied from interface:ReflectiveDataObjectThe type identifier for this concrete sub-type.
-
readRemoveElement
public static RemoveElement readRemoveElement(JsonReader in) throws IOException
Reads a new instance from the given reader.- Throws:
IOException
-
typeId
public int typeId()
Description copied from class:CommandThe binary identifier for this concrete type in the polymorphicCommandhierarchy.
-
readRemoveElement
public static RemoveElement readRemoveElement(DataReader in) throws IOException
Reads a new instance from the given reader.- Throws:
IOException
-
visit
public <R,A,E extends Throwable> R visit(ListUpdate.Visitor<R,A,E> v, A arg) throws E extends Throwable
Description copied from class:ListUpdateAccepts the given visitor.- Specified by:
visitin classListUpdate- Throws:
E extends Throwable
-
-