Class DefaultEdges

  • All Implemented Interfaces:
    java.lang.Iterable<org.apache.hugegraph.computer.core.graph.edge.Edge>, org.apache.hugegraph.computer.core.graph.edge.Edges

    public class DefaultEdges
    extends java.lang.Object
    implements org.apache.hugegraph.computer.core.graph.edge.Edges
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultEdges​(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory, int capacity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(org.apache.hugegraph.computer.core.graph.edge.Edge edge)  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.util.Iterator<org.apache.hugegraph.computer.core.graph.edge.Edge> iterator()  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • DefaultEdges

        public DefaultEdges​(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory,
                            int capacity)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface org.apache.hugegraph.computer.core.graph.edge.Edges
      • add

        public void add​(org.apache.hugegraph.computer.core.graph.edge.Edge edge)
        Specified by:
        add in interface org.apache.hugegraph.computer.core.graph.edge.Edges
      • iterator

        public java.util.Iterator<org.apache.hugegraph.computer.core.graph.edge.Edge> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<org.apache.hugegraph.computer.core.graph.edge.Edge>
      • equals

        public boolean equals​(java.lang.Object obj)
        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