Class GraphEdge


  • public final class GraphEdge
    extends java.lang.Object
    • 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

      • 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()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withSourceIndex

        public GraphEdge withSourceIndex​(java.lang.Integer sourceIndex)
        Returns:
        a clone of this object, except with this updated property (returns this if 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 this if 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 this if 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 this if 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 this if 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 this if 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 this if 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 this if 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 this if an identical value is passed).
      • withDuration

        public GraphEdge withDuration​(GraphEdgeDuration duration)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).