com.hannesdorfmann.httpkit.parser.condition.MoreThanEqualCondition Maven / Gradle / Ivy
package com.hannesdorfmann.httpkit.parser.condition;
/**
* Determines if the httpStatusCode is more than or equal the value, set by
* {@link #setMoreOrEqualValue(int)}
*
* @author Hannes Dorfmann
*
*/
public class MoreThanEqualCondition implements ParseCondition {
private int value;
public MoreThanEqualCondition() {
}
public MoreThanEqualCondition(int value) {
this.value = value;
}
public MoreThanEqualCondition setMoreOrEqualValue(int value) {
this.value = value;
return this;
}
@Override
public boolean isFullfilled(int httpStatusCode) {
return value >= httpStatusCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy