org.crsh.cmdline.spi
Class Value
java.lang.Object
org.crsh.cmdline.spi.Value
- Direct Known Subclasses:
- Path, Value.Properties
public abstract class Value
- extends Object
A typed string, this class should be extended to provide meta information about a string and provide type safety.
This class is immutable and so should be its subclasses.
- Version:
- $Revision$
- Author:
- Julien Viet
Constructor Summary |
Value(String string)
The only constructors that accepts a string. |
string
private final String string
- .
Value
public Value(String string)
throws NullPointerException
- The only constructors that accepts a string.
- Parameters:
string
- the string value
- Throws:
NullPointerException
- if the string is null
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getString
public final String getString()
- Returns the string value.
- Returns:
- the string value
toString
public final String toString()
- Overrides:
toString
in class Object
Copyright © 2012 eXo Platform SAS. All Rights Reserved.