diff options
Diffstat (limited to 'lib/utility/NotSpecification.cs')
| -rw-r--r-- | lib/utility/NotSpecification.cs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/utility/NotSpecification.cs b/lib/utility/NotSpecification.cs index c9c0c49..c6985cf 100644 --- a/lib/utility/NotSpecification.cs +++ b/lib/utility/NotSpecification.cs @@ -1,17 +1,17 @@ -namespace gorilla.utility
-{
- public class NotSpecification<T> : Specification<T>
- {
- readonly Specification<T> item_to_match;
-
- public NotSpecification(Specification<T> item_to_match)
- {
- this.item_to_match = item_to_match;
- }
-
- public bool is_satisfied_by(T item)
- {
- return !item_to_match.is_satisfied_by(item);
- }
- }
-}
\ No newline at end of file +namespace jive.utility +{ + public class NotSpecification<T> : Specification<T> + { + readonly Specification<T> item_to_match; + + public NotSpecification(Specification<T> item_to_match) + { + this.item_to_match = item_to_match; + } + + public bool is_satisfied_by(T item) + { + return !item_to_match.is_satisfied_by(item); + } + } +} |
