Package org.eolang.tojos
Class MonoTojos
- java.lang.Object
-
- org.eolang.tojos.MonoTojos
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tojoadd(String name)Add new tojo with the given ID.Collection<Tojo>select(org.cactoos.Func<Tojo,Boolean> filter)Select some tojos.
-
-
-
Method Detail
-
add
public Tojo add(String name) throws IOException
Description copied from interface:TojosAdd new tojo with the given ID. If another tojo already exists with this ID, it will be returned.- Specified by:
addin interfaceTojos- Parameters:
name- The ID of the tojo- Returns:
- The tojo created or found
- Throws:
IOException- If fails
-
select
public Collection<Tojo> select(org.cactoos.Func<Tojo,Boolean> filter) throws IOException
Description copied from interface:TojosSelect some tojos.- Specified by:
selectin interfaceTojos- Parameters:
filter- The filter- Returns:
- Collection of them
- Throws:
IOException- If fails
-
-