org.jboss.metatype.plugins.types
Class StringName

java.lang.Object
  extended by org.jboss.metatype.plugins.types.StringName
All Implemented Interfaces:
Serializable, Comparable<Name>, Name

public class StringName
extends Object
implements Name

A simple string based Name implementation.

Version:
$Revision: 81156 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
StringName(String name)
           
 
Method Summary
 int compareTo(Name n)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringName

public StringName(String name)
Parameters:
name -
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Specified by:
toString in interface Name
Overrides:
toString in class Object

compareTo

public int compareTo(Name n)
Specified by:
compareTo in interface Comparable<Name>


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.