jcommon.graph
Class ObjectVertex

java.lang.Object
  extended by jcommon.graph.ObjectVertex
All Implemented Interfaces:
IVertex

public class ObjectVertex
extends Object
implements IVertex

A representation of an IVertex instance using Objects.

See Also:
IVertex

Constructor Summary
ObjectVertex(Object value)
          Instantiates a new instance of ObjectVertex.
 
Method Summary
 boolean equals(Object o)
           
static ObjectVertex from(Object value)
          Convenience method for instantiating a new ObjectVertex.
 Object get()
          Retrieves the value that this ObjectVertex represents.
 Object getValue()
          Retrieves the value that this ObjectVertex represents.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectVertex

public ObjectVertex(Object value)
Instantiates a new instance of ObjectVertex.

Parameters:
value - The value which this ObjectVertex will represent.
Method Detail

get

public Object get()
Retrieves the value that this ObjectVertex represents.

Returns:
An instance of a Object that this ObjectVertex represents.

getValue

public Object getValue()
Retrieves the value that this ObjectVertex represents.

Returns:
An instance of a Object that this ObjectVertex represents.

equals

public boolean equals(Object o)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

from

public static ObjectVertex from(Object value)
Convenience method for instantiating a new ObjectVertex.

Parameters:
value - The value which this ObjectVertex will represent.
Returns:
A new instance of ObjectVertex.


Copyright © 2012-2013. All Rights Reserved.