Jalopy 1.0b10

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

Field Summary
static History.Method ADLER32
          Use Adler32 checksum.
static History.Method CRC32
          Use CRC32 checksum.
static History.Method TIMESTAMP
          Use simple, last modified timestamp.
 
Method Summary
 String getName()
          Returns the name of this method.
 String toString()
          Returns a string representation of this method.
static History.Method valueOf(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
 

Field Detail

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.
Method Detail

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.

Jalopy 1.0b10

Submit a bug or feature.

For further information and documentation, visit the official Jalopy website.
This page generated: November 14 2002