Package org.eolang.tojos
Interface Tojos
-
- All Known Implementing Classes:
MonoTojos,SmartTojos
public interface TojosText Object Java Object (TOJO) in a storage.- Since:
- 0.12
-
-
Method Summary
All Methods Instance Methods Abstract 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
Tojo add(String name) throws IOException
Add new tojo with the given ID. If another tojo already exists with this ID, it will be returned.- Parameters:
name- The ID of the tojo- Returns:
- The tojo created or found
- Throws:
IOException- If fails
-
select
Collection<Tojo> select(org.cactoos.Func<Tojo,Boolean> filter) throws IOException
Select some tojos.- Parameters:
filter- The filter- Returns:
- Collection of them
- Throws:
IOException- If fails
-
-