Package de.skuzzle.test.snapshots
Class SnapshotFile.SnapshotHeader
- java.lang.Object
-
- de.skuzzle.test.snapshots.SnapshotFile.SnapshotHeader
-
- Enclosing class:
- SnapshotFile
@API(status=EXPERIMENTAL) public static final class SnapshotFile.SnapshotHeader extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDYNAMIC_DIRECTORYStores per snapshot whether it had been taken with a dynamic directory.static StringSNAPSHOT_NAMEstatic StringSNAPSHOT_NUMBERstatic StringTEST_CLASSstatic StringTEST_METHOD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static SnapshotFile.SnapshotHeaderfromMap(Map<String,String> values)Stringget(String key)booleangetBoolean(String key, boolean defaultValue)Retrieves a boolean header value.intgetInt(String key)StringgetOrDefault(String key, String defaultValue)inthashCode()static SnapshotFile.SnapshotHeaderreadFrom(BufferedReader reader)StringtoString()
-
-
-
Field Detail
-
TEST_CLASS
public static final String TEST_CLASS
- See Also:
- Constant Field Values
-
TEST_METHOD
public static final String TEST_METHOD
- See Also:
- Constant Field Values
-
SNAPSHOT_NUMBER
public static final String SNAPSHOT_NUMBER
- See Also:
- Constant Field Values
-
SNAPSHOT_NAME
public static final String SNAPSHOT_NAME
- See Also:
- Constant Field Values
-
DYNAMIC_DIRECTORY
@API(status=EXPERIMENTAL, since="1.2.2") public static final String DYNAMIC_DIRECTORYStores per snapshot whether it had been taken with a dynamic directory. This information helps to improve static orphan detection.- Since:
- 1.2.2
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromMap
public static SnapshotFile.SnapshotHeader fromMap(Map<String,String> values)
-
readFrom
public static SnapshotFile.SnapshotHeader readFrom(BufferedReader reader) throws IOException
- Throws:
IOException
-
getInt
public int getInt(String key)
-
getBoolean
@API(status=EXPERIMENTAL, since="1.2.2") public boolean getBoolean(String key, boolean defaultValue)Retrieves a boolean header value.- Parameters:
key- The name of the header to retrieve.defaultValue- Default value if no header for that key exists.- Returns:
- The boolean value.
- Since:
- 1.2.2
-
-