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 Tojo
add(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:Tojos
Add new tojo with the given ID. If another tojo already exists with this ID, it will be returned.- Specified by:
add
in 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:Tojos
Select some tojos.- Specified by:
select
in interfaceTojos
- Parameters:
filter
- The filter- Returns:
- Collection of them
- Throws:
IOException
- If fails
-
-