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 java.lang.Object
Represents the method used to identify dirty files and changed files.
- Since:
- 1.0b9
- Author:
- Michael Callum
Method Summary |
java.lang.String |
getName()
Returns the name of this method. |
java.lang.String |
toString()
Returns a string representation of this method. |
static History.Method |
valueOf(java.lang.String methodName)
Returns the history method for the given name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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(java.lang.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:
java.lang.IllegalArgumentException
- if an invalid name specified.
getName
public java.lang.String getName()
- Returns the name of this method.
- Returns:
- the name of this method.
toString
public java.lang.String toString()
- Returns a string representation of this method.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string representation of this method.