Class CheckStore
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.checkers.CheckStore
-
public class CheckStore extends Object
This class define a storage where some results of the checker can be save for later reuse by other checkers.- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String key, Object value)Store some data.voidclear()Clear the content of the CheckStore.booleancontains(String key)Test if a data exists.Objectget(String key)Get some data.static CheckStoregetCheckStore()Get the instance of the CheckStore.
-
-
-
Method Detail
-
add
public void add(String key, Object value)
Store some data.- Parameters:
key- key of the datavalue- the data to store
-
get
public Object get(String key)
Get some data.- Parameters:
key- key of the data to retrieve- Returns:
- data if stored
-
contains
public boolean contains(String key)
Test if a data exists.- Parameters:
key- key of the data to test- Returns:
- true if data exists
-
clear
public void clear()
Clear the content of the CheckStore.
-
getCheckStore
public static CheckStore getCheckStore()
Get the instance of the CheckStore.- Returns:
- the CheckStore object
-
-