org.apache.tools.ant.filters

Class FixCrLfFilter.CrLf

public static class FixCrLfFilter.CrLf extends EnumeratedAttribute

Enumerated attribute with the values "asis", "cr", "lf" and "crlf".
Method Summary
booleanequals(Object other)
Equality depending in the index.
String[]getValues()
{@inheritDoc }.
inthashCode()
Hashcode depending on the index.
static FixCrLfFilter.CrLfnewInstance(String value)
Create an instance of this enumerated value based on the string value.

Method Detail

equals

public boolean equals(Object other)
Equality depending in the index.

Parameters: other the object to test equality against.

Returns: true if the object has the same index as this.

getValues

public String[] getValues()
{@inheritDoc }.

hashCode

public int hashCode()
Hashcode depending on the index.

Returns: the index as the hashcode.

newInstance

public static FixCrLfFilter.CrLf newInstance(String value)
Create an instance of this enumerated value based on the string value.

Parameters: value the value to use.

Returns: an enumerated instance.