
net.fortuna.ical4j.extensions.property.CompletionStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ical4j-extensions Show documentation
Show all versions of ical4j-extensions Show documentation
Support for additional non-standard iCalendar objects
package net.fortuna.ical4j.extensions.property;
import net.fortuna.ical4j.model.Parameter;
import net.fortuna.ical4j.model.Property;
import net.fortuna.ical4j.model.property.ImmutableProperty;
import net.fortuna.ical4j.model.property.PercentComplete;
/**
* An immutable subclass of {@link PercentComplete} that defines common property values.
*/
public class CompletionStatus extends PercentComplete implements ImmutableProperty {
public static final CompletionStatus NOT_STARTED = new CompletionStatus(0);
public static final CompletionStatus COMPLETED = new CompletionStatus(100);
public CompletionStatus(int aPercentage) {
super(aPercentage);
}
@Override
public T add(Parameter parameter) {
return ImmutableProperty.super.add(parameter);
}
@Override
public T remove(Parameter parameter) {
return ImmutableProperty.super.remove(parameter);
}
@Override
public T removeAll(String... parameterName) {
return ImmutableProperty.super.removeAll(parameterName);
}
@Override
public T replace(Parameter parameter) {
return ImmutableProperty.super.replace(parameter);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy