de.hunsicker.jalopy.storage
Class History.Method
java.lang.Object
|
+--de.hunsicker.jalopy.storage.History.Method
- Enclosing class:
- History
- public static final class History.Method
- extends Object
Represents the method used to identify dirty files and changed files.
- Since:
- 1.0b9
- Author:
- Michael Callum
TIMESTAMP
public static final History.Method TIMESTAMP
- Use simple, last modified timestamp.
CRC32
public static final History.Method CRC32
- Use CRC32 checksum.
ADLER32
public static final History.Method ADLER32
- Use Adler32 checksum.
valueOf
public static History.Method valueOf(String methodName)
- Returns the history method for the given name.
- Parameters:
methodName
- a valid method name. Either "timestamp",
"crc32" or "adler32" (case-sensitive).- Returns:
- The policy for the given name.
- Throws:
IllegalArgumentException
- if an invalid name specified.
getName
public String getName()
- Returns the name of this method.
- Returns:
- the name of this method.
toString
public String toString()
- Returns a string representation of this method.
- Overrides:
toString
in class Object
- Returns:
- a string representation of this method.