Removed redundant getFlag-method from Task, as its already in AbstractModel

pull/14/head
Arne Jans 13 years ago
parent ab7b6c9a4a
commit 1ddaca5109

@ -331,9 +331,10 @@ public abstract class AbstractModel implements Parcelable, Cloneable {
}
/**
* Gets the state of the given flag on the given property
* @param property
* @param flag
* Returns the set state of the given flag on the given property
* @param property the property to get the set state of the flag
* @param flag the flag-descriptor (e.g. <code>Task.FLAG_REPEAT_AFTER_COMPLETION</code>)
* @return true if the flag is set
*/
public boolean getFlag(IntegerProperty property, int flag) {
return (getValue(property) & flag) > 0;

@ -304,17 +304,6 @@ public final class Task extends RemoteModel {
return getValue(DUE_DATE) > 0;
}
/**
* Returns the set state of the given flag on the given property
* @param property
* @param flag
* @return
*/
@Override
public boolean getFlag(IntegerProperty property, int flag) {
return (getValue(property) & flag) > 0;
}
// --- due and hide until date management
/** urgency array index -> significance */

Loading…
Cancel
Save