package ie.dcu.array;
/**
* Interfaces for filters
*
* @author Kevin McGuinness
*/
public interface Filter {
/**
* Returns true if the given value should be retained.
*
* @param object
* An object.
* @return
* true if the value should be retained.
*/
public boolean retain(Object object);
/**
* An byte filter.
*/
public interface Byte {
/**
* Returns true if the given value should be retained.
*
* @param value
* An byte value.
* @return
* true if the value should be retained.
*/
public boolean retain(byte value);
}
/**
* An short filter.
*/
public interface Short {
/**
* Returns true if the given value should be retained.
*
* @param value
* An short value.
* @return
* true if the value should be retained.
*/
public boolean retain(short value);
}
/**
* An int filter.
*/
public interface Integer {
/**
* Returns true if the given value should be retained.
*
* @param value
* An int value.
* @return
* true if the value should be retained.
*/
public boolean retain(int value);
}
/**
* An long filter.
*/
public interface Long {
/**
* Returns true if the given value should be retained.
*
* @param value
* An long value.
* @return
* true if the value should be retained.
*/
public boolean retain(long value);
}
/**
* An float filter.
*/
public interface Float {
/**
* Returns true if the given value should be retained.
*
* @param value
* An float value.
* @return
* true if the value should be retained.
*/
public boolean retain(float value);
}
/**
* An double filter.
*/
public interface Double {
/**
* Returns true if the given value should be retained.
*
* @param value
* An double value.
* @return
* true if the value should be retained.
*/
public boolean retain(double value);
}
}