Class Vertex<T>
java.lang.Object
io.github.tigerbotics7125.tigerlib.math.graph.Vertex<T>
A generic class which holds data for a graph.
- Since:
- 2023
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Vertex
Creates a new Vertex.- Parameters:
data
- The data to store, it must implement a valid equals and hashCode method.
-
-
Method Details
-
of
A shortcut for the constructor.- Type Parameters:
T
- Type of the returned Vertex.- Parameters:
data
- The data to store, it must implement a valid equals and hashCode method.- Returns:
-
getData
- Returns:
- The data stored in this Vertex.
-
toString
-
equals
-
hashCode
public int hashCode()
-