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 booleancontains(ObjectName name)Check if an object exists.org.cactoos.Inputobject(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:ObjectionariesGet an object by hash and name.- Specified by:
objectin 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:ObjectionariesCheck if an object exists.- Specified by:
containsin interfaceObjectionaries- Parameters:
name- Object name- Returns:
- True if an object exists, false otherwise
- Throws:
IOException- If some I/O problem happens.
-
-