Simplify reading of region and events files

This commit is contained in:
drdev
2016-01-31 22:05:43 +00:00
parent 91c3083c16
commit 12afde904c
5 changed files with 20 additions and 30 deletions

View File

@@ -92,6 +92,16 @@ public class FCollection<T> implements List<T>, Set<T>, FCollectionView<T>, Clon
}
}
/**
* Create an {@link FCollection} from an {@link FCollectionReader}.
*
* @param reader
* a reader used to populate collection
*/
public FCollection(final FCollectionReader<T> reader) {
reader.readAll(this);
}
/**
* Check whether an {@link Iterable} contains any iterable, silently
* returning {@code false} when {@code null} is passed as an argument.