jcommon.graph
Class StringVertex

java.lang.Object
  extended by jcommon.graph.StringVertex
All Implemented Interfaces:
IVertex<String>

public class StringVertex
extends Object
implements IVertex<String>

A representation of an IVertex instance using Strings.

See Also:
IVertex

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

Constructor Detail

StringVertex

public StringVertex(String name)
Instantiates a new instance of StringVertex.

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

get

public String get()
Retrieves the value that this StringVertex represents.

Specified by:
get in interface IVertex<String>
Returns:
An instance of a String that this StringVertex represents.

getName

public String getName()
Retrieves the name that this StringVertex represents.

Returns:
An instance of a String that this StringVertex represents.

getValue

public String getValue()
Retrieves the value that this StringVertex represents.

Specified by:
getValue in interface IVertex<String>
Returns:
An instance of a String that this StringVertex 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 StringVertex from(String name)
Convenience method for instantiating a new StringVertex.

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


Copyright © 2012-2013. All Rights Reserved.