Package org.eolang.maven.objectionary
Class Objectionaries.Fake
- java.lang.Object
-
- org.eolang.maven.objectionary.Objectionaries.Fake
-
- All Implemented Interfaces:
Objectionaries
- Enclosing interface:
- Objectionaries
public static final class Objectionaries.Fake extends Object implements Objectionaries
Fake objectionaries. Contains only one default objectionary that will be returned by any hash.- Since:
- 0.29.6
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.maven.objectionary.Objectionaries
Objectionaries.Fake
-
-
Constructor Summary
Constructors Constructor Description Fake()
Ctor.Fake(Objectionary objry)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(ObjectName name)
Check if an object exists.org.cactoos.Input
object(ObjectName name)
Get an object by hash and name.
-
-
-
Constructor Detail
-
Fake
public Fake()
Ctor.
-
Fake
public Fake(Objectionary objry)
Ctor.- Parameters:
objry
- Default objectionary
-
-
Method Detail
-
object
public org.cactoos.Input object(ObjectName name) throws IOException
Description copied from interface:Objectionaries
Get an object by hash and name.- Specified by:
object
in interfaceObjectionaries
- Parameters:
name
- Object name- Returns:
- Object
- Throws:
IOException
- If some I/O problem happens.
-
contains
public boolean contains(ObjectName name) throws IOException
Description copied from interface:Objectionaries
Check if an object exists.- Specified by:
contains
in interfaceObjectionaries
- Parameters:
name
- Object name- Returns:
- True if an object exists, false otherwise
- Throws:
IOException
- If some I/O problem happens.
-
-