Package tech.kronicle.sdk.models
Class GraphState
- java.lang.Object
-
- tech.kronicle.sdk.models.GraphState
-
- All Implemented Interfaces:
DiagramState,ObjectWithId,State
public final class GraphState extends java.lang.Object implements DiagramState
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphState.GraphStateBuilder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE
-
Constructor Summary
Constructors Constructor Description GraphState(java.lang.String pluginId, java.lang.String environmentId, java.util.List<GraphNode> nodes, java.util.List<GraphEdge> edges, java.lang.Integer sampleSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphState.GraphStateBuilderbuilder()booleanequals(java.lang.Object o)java.util.List<@Valid GraphEdge>getEdges()java.lang.StringgetEnvironmentId()java.lang.StringgetId()java.util.List<@Valid GraphNode>getNodes()java.lang.StringgetPluginId()java.lang.IntegergetSampleSize()java.lang.StringgetType()inthashCode()GraphState.GraphStateBuildertoBuilder()java.lang.StringtoString()GraphStatewithEdges(java.util.List<@Valid GraphEdge> edges)GraphStatewithEnvironmentId(java.lang.String environmentId)GraphStatewithNodes(java.util.List<@Valid GraphNode> nodes)GraphStatewithPluginId(java.lang.String pluginId)GraphStatewithSampleSize(java.lang.Integer sampleSize)
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static GraphState.GraphStateBuilder builder()
-
toBuilder
public GraphState.GraphStateBuilder toBuilder()
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfaceDiagramState- Specified by:
getTypein interfaceState
-
getPluginId
public java.lang.String getPluginId()
- Specified by:
getPluginIdin interfaceDiagramState- Specified by:
getPluginIdin interfaceState
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceDiagramState- Specified by:
getIdin interfaceObjectWithId- Specified by:
getIdin interfaceState
-
getEnvironmentId
public java.lang.String getEnvironmentId()
-
getNodes
public java.util.List<@Valid GraphNode> getNodes()
-
getEdges
public java.util.List<@Valid GraphEdge> getEdges()
-
getSampleSize
public java.lang.Integer getSampleSize()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withPluginId
public GraphState withPluginId(java.lang.String pluginId)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEnvironmentId
public GraphState withEnvironmentId(java.lang.String environmentId)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNodes
public GraphState withNodes(java.util.List<@Valid GraphNode> nodes)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEdges
public GraphState withEdges(java.util.List<@Valid GraphEdge> edges)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSampleSize
public GraphState withSampleSize(java.lang.Integer sampleSize)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-