Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this class is meant as a pseudo-enum - I'm stuck on Java 1.4 for time being
- public final class BillingUnit {
- public final static BillingUnit MONTH = new BillingUnit("month");
- public final static BillingUnit YEAR = new BillingUnit("year");
- private String value;
- private BillingUnit(String value) {
- this.value = value;
- }
- public String getValue() {
- return this.value;
- }
- public boolean equals(Object obj) {
- return value.equals(((BillingUnit) obj).getValue());
- }
- public int hashCode() {
- return value.hashCode();
- }
- }
- if(logger.isDebugEnabled()) {
- logger.debug("something");
- }
- public float reciprocal (float ex)
- {
- return (1.0 / ex) ;
- }
Add Comment
Please, Sign In to add comment