add factory make()

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1496 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2007-07-17 13:39:21 +00:00
parent 0b0d6588f0
commit 9248040783
1 changed files with 4 additions and 0 deletions

View File

@ -55,4 +55,8 @@ public class NonNullSingletonIterator<T> implements Iterator<T> {
throw new UnsupportedOperationException();
}
public static <T> NonNullSingletonIterator<T> make(T item) {
return new NonNullSingletonIterator<T>(item);
}
}