Skip to content

Commit

Permalink
huch, constructor vergessen.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbiehl committed Oct 28, 2012
1 parent ef13132 commit 9f59b33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/fhw/asta/kasse/client/common/Validator.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.List;

import com.google.common.base.Predicate;
import com.google.common.collect.Lists;

public class Validator<T> {

Expand All @@ -13,6 +14,10 @@ static public <E> Validator<E> start() {
return new Validator<E>();
}

public Validator() {
this.predicates = Lists.newLinkedList();
}

public Validator<T> add(Predicate<T> predicate) {
this.predicates.add(predicate);
return this;
Expand Down

0 comments on commit 9f59b33

Please sign in to comment.