org.apache.tools.ant.filters

Class FixCrLfFilter.AddAsisRemove

Enclosing Class:
FixCrLfFilter

public static class FixCrLfFilter.AddAsisRemove
extends EnumeratedAttribute

Enumerated attribute with the values "asis", "add" and "remove".

Field Summary

Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute

value

Method Summary

boolean
equals(Object other)
Equality depending in the index.
String[]
getValues()
.
int
hashCode()
Hashcode depending on the index.
static FixCrLfFilter.AddAsisRemove
newInstance(String value)
Create an instance of this enumerated value based on the string value.

Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute

containsValue, getIndex, getInstance, getValue, getValues, indexOfValue, setValue, toString

Method Details

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()
.
Overrides:
getValues in interface EnumeratedAttribute

hashCode

public int hashCode()
Hashcode depending on the index.
Returns:
the index as the hashcode.

newInstance

public static FixCrLfFilter.AddAsisRemove 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.