net.sourceforge.domian.specification
Class BlankStringSpecification
java.lang.Object
net.sourceforge.domian.specification.AbstractSpecification<java.lang.String>
net.sourceforge.domian.specification.BlankStringSpecification
- All Implemented Interfaces:
- LeafSpecification<java.lang.String>, Specification<java.lang.String>
Deprecated. Replaced by DefaultValueSpecification - will be removed in v0.5
@Deprecated
final class BlankStringSpecification
- extends AbstractSpecification<java.lang.String>
- implements LeafSpecification<java.lang.String>
Leaf specification, specifying all blank string objects.
Specification spec = new BlankStringSpecification();
spec.isSatisfiedBy(null) -> true
spec.isSatisfiedBy("") -> true
spec.isSatisfiedBy(" ") -> true
spec.isSatisfiedBy("\n") -> true
spec.isSatisfiedBy("\r") -> true
spec.isSatisfiedBy("\t") -> true
spec.isSatisfiedBy("\r\n") -> true
spec.isSatisfiedBy(".") -> false
- Since:
- 0.1
- Author:
- Eirik Torske
- See Also:
- Commons Lang
Method Summary |
java.lang.Boolean |
isSatisfiedBy(java.lang.String candidate)
Deprecated. Specification satisfaction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BlankStringSpecification
BlankStringSpecification()
- Deprecated.
isSatisfiedBy
public java.lang.Boolean isSatisfiedBy(java.lang.String candidate)
- Deprecated.
- Description copied from interface:
Specification
- Specification satisfaction.
- Specified by:
isSatisfiedBy
in interface Specification<java.lang.String>
- Parameters:
candidate
- The candidate object
- Returns:
true
only if this specification is satisfied by/approves the given candidate (null
is never approved)
Copyright © 2006-2009. All Rights Reserved.