Package tech.kronicle.sdk.models
Class GraphEdge
- java.lang.Object
-
- tech.kronicle.sdk.models.GraphEdge
-
public final class GraphEdge extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphEdge.GraphEdgeBuilder
-
Constructor Summary
Constructors Constructor Description GraphEdge(java.lang.Integer sourceIndex, java.lang.Integer targetIndex, java.util.List<java.lang.Integer> relatedIndexes, java.lang.String type, java.lang.String label, java.lang.String description, java.lang.Integer sampleSize, java.time.LocalDateTime startTimestamp, java.time.LocalDateTime endTimestamp, GraphEdgeDuration duration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphEdge.GraphEdgeBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetDescription()GraphEdgeDurationgetDuration()java.time.LocalDateTimegetEndTimestamp()java.lang.StringgetLabel()java.util.List<@NotNull @Min(0L) java.lang.Integer>getRelatedIndexes()java.lang.IntegergetSampleSize()java.lang.IntegergetSourceIndex()java.time.LocalDateTimegetStartTimestamp()java.lang.IntegergetTargetIndex()java.lang.StringgetType()inthashCode()GraphEdge.GraphEdgeBuildertoBuilder()java.lang.StringtoString()GraphEdgewithDescription(java.lang.String description)GraphEdgewithDuration(GraphEdgeDuration duration)GraphEdgewithEndTimestamp(java.time.LocalDateTime endTimestamp)GraphEdgewithLabel(java.lang.String label)GraphEdgewithRelatedIndexes(java.util.List<@NotNull @Min(0L) java.lang.Integer> relatedIndexes)GraphEdgewithSampleSize(java.lang.Integer sampleSize)GraphEdgewithSourceIndex(java.lang.Integer sourceIndex)GraphEdgewithStartTimestamp(java.time.LocalDateTime startTimestamp)GraphEdgewithTargetIndex(java.lang.Integer targetIndex)GraphEdgewithType(java.lang.String type)
-
-
-
Constructor Detail
-
GraphEdge
public GraphEdge(java.lang.Integer sourceIndex, java.lang.Integer targetIndex, java.util.List<java.lang.Integer> relatedIndexes, java.lang.String type, java.lang.String label, java.lang.String description, java.lang.Integer sampleSize, java.time.LocalDateTime startTimestamp, java.time.LocalDateTime endTimestamp, GraphEdgeDuration duration)
-
-
Method Detail
-
builder
public static GraphEdge.GraphEdgeBuilder builder()
-
toBuilder
public GraphEdge.GraphEdgeBuilder toBuilder()
-
getSourceIndex
public java.lang.Integer getSourceIndex()
-
getTargetIndex
public java.lang.Integer getTargetIndex()
-
getRelatedIndexes
public java.util.List<@NotNull @Min(0L) java.lang.Integer> getRelatedIndexes()
-
getType
public java.lang.String getType()
-
getLabel
public java.lang.String getLabel()
-
getDescription
public java.lang.String getDescription()
-
getSampleSize
public java.lang.Integer getSampleSize()
-
getStartTimestamp
public java.time.LocalDateTime getStartTimestamp()
-
getEndTimestamp
public java.time.LocalDateTime getEndTimestamp()
-
getDuration
public GraphEdgeDuration getDuration()
-
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
-
withSourceIndex
public GraphEdge withSourceIndex(java.lang.Integer sourceIndex)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTargetIndex
public GraphEdge withTargetIndex(java.lang.Integer targetIndex)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRelatedIndexes
public GraphEdge withRelatedIndexes(java.util.List<@NotNull @Min(0L) java.lang.Integer> relatedIndexes)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withType
public GraphEdge withType(java.lang.String type)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLabel
public GraphEdge withLabel(java.lang.String label)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDescription
public GraphEdge withDescription(java.lang.String description)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSampleSize
public GraphEdge withSampleSize(java.lang.Integer sampleSize)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStartTimestamp
public GraphEdge withStartTimestamp(java.time.LocalDateTime startTimestamp)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEndTimestamp
public GraphEdge withEndTimestamp(java.time.LocalDateTime endTimestamp)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDuration
public GraphEdge withDuration(GraphEdgeDuration duration)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-