jcommon.graph
Class NumberVertex

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

public class NumberVertex
extends Object
implements IVertex

A representation of an IVertex instance using Numbers.

See Also:
IVertex

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

Constructor Detail

NumberVertex

public NumberVertex(Number value)
Instantiates a new instance of NumberVertex.

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

get

public Number get()
Retrieves the value that this NumberVertex represents.

Returns:
An instance of a Number that this NumberVertex represents.

getValue

public Number getValue()
Retrieves the value that this NumberVertex represents.

Returns:
An instance of a Number that this NumberVertex 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 NumberVertex from(Number value)
Convenience method for instantiating a new NumberVertex.

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


Copyright © 2012-2013. All Rights Reserved.