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 void
add(String key, Object value)
Store some data.void
clear()
Clear the content of the CheckStore.boolean
contains(String key)
Test if a data exists.Object
get(String key)
Get some data.static CheckStore
getCheckStore()
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
-
-