de.hunsicker.jalopy.storage
Class History.Policy
java.lang.Object
|
+--de.hunsicker.jalopy.storage.History.Policy
- Enclosing class:
- History
- public static final class History.Policy
- extends Object
Represents a history policy.
- Since:
- 1.0b8
DISABLED
public static final History.Policy DISABLED
- Don't use the history.
COMMENT
public static final History.Policy COMMENT
- Insert a single line comment header at the top of every formatted file.
FILE
public static final History.Policy FILE
- Track file modifications in a binary file stored in the Jalopy settings
directory.
valueOf
public static History.Policy valueOf(String name)
- Returns the policy for the given name.
- Parameters:
name
- a valid policy name. Either "disabled", "file"
or "comment" (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 policy.
- Returns:
- the name of this policy.
toString
public String toString()
- Returns a string representation of this object.
- Overrides:
toString
in class Object
- Returns:
- A string representation of this object.