Class SegmentGraph


  • public final class SegmentGraph
    extends Object
    • Constructor Detail

      • SegmentGraph

        public SegmentGraph()
    • Method Detail

      • addEdge

        public void addEdge​(@NotNull
                            @NotNull UUID from,
                            @NotNull
                            @NotNull UUID to)
      • getEdges

        @NotNull
        public @NotNull Map<UUID,​Set<UUID>> getEdges()
      • getEdges

        @NotNull
        public @NotNull Set<UUID> getEdges​(@NotNull
                                           @NotNull UUID from)
      • load

        @Nullable
        public static @Nullable SegmentGraph load​(ReaderAtEnd readerAtEnd)
                                           throws IOException
        Loads the optional pre-compiled graph entry from the given tar file.
        Returns:
        the graph or null if one was not found
        Throws:
        IOException - if the tar file could not be read
      • parse

        @NotNull
        public static @NotNull SegmentGraph parse​(@NotNull
                                                  @NotNull Buffer buffer)
      • write

        public byte[] write()
      • size

        public int size()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object