net.java.properties
Class Result<T>
java.lang.Object
net.java.properties.Result<T>
public class Result<T>
- extends java.lang.Object
A class that holds the result of a validation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getType
public Result.Type getType()
- Returns the type of the result.
- Returns:
- The type of the result. Never
null.
getStatus
public java.lang.Object getStatus()
getReplacement
public T getReplacement()
changed
public boolean changed()
create
public static final <T> Result<T> create(Result.Type type,
java.lang.Object status,
T replacement)
noChange
public static final <T> Result<T> noChange()
ok
public static final <T> Result<T> ok()
ok
public static final <T> Result<T> ok(java.lang.Object status)
refuse
public static final <T> Result<T> refuse()
refuse
public static final <T> Result<T> refuse(java.lang.Object status)
replace
public static final <T> Result<T> replace(T replacement)
replace
public static final <T> Result<T> replace(T replacement,
java.lang.String status)
exception
public static final <T> Result<T> exception(java.lang.Object status)
Copyright © 2007 MiG InfoCom AB. All Rights Reserved.