mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Simplify reading of region and events files
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user