@Override public int hashCode() { int hash = 7; hash = 83 * hash + (this.id != null ? this.id.hashCode() : 0); hash = 83 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 83 * hash + (this.type != null ? this.type.hashCode() : 0); hash = 83 * hash + (this.includeDefault ? 1 : 0); return hash; }
@Override public String toString() { switch (type) { case ANY: case DEFAULT: return type.toString(); case IDVALUE: return "id" + (includeDefault?"+:":":") + (id==null?"(null)":id.toString()); case NAMEVALUE: String tmp; if(name == null) tmp = "(null)"; else if (name.isEmpty()) tmp = "(empty)"; else tmp = name; return "name" + (includeDefault?"+:":":") + tmp; default: throw new AssertionError(); } }
@Override public String toString() { switch (type) { case ANY: case DEFAULT: return type.toString(); case IDVALUE: return "id" + (includeDefault?"+:":":") + (id==null?"(null)":id.toString()); case NAMEVALUE: String tmp; if(name == null) tmp = "(null)"; else if (name.isEmpty()) tmp = "(empty)"; else tmp = name; return "name" + (includeDefault?"+:":":") + tmp; default: throw new AssertionError(); } }
@Override public String toString() { switch (type) { case ANY: case DEFAULT: return type.toString(); case NAMEVALUE: return (text == null ? "(null)" : text.isEmpty() ? "(empty)" : '"'+text+'"') + (includeDefault?"+":"") ; case IDVALUE: default: throw new AssertionError(); } }
@Override public String toString() { switch (type) { case ANY: case DEFAULT: return type.toString(); case NAMEVALUE: return (text == null ? "(null)" : text.isEmpty() ? "(empty)" : '"'+text+'"') + (includeDefault?"+":"") ; case IDVALUE: default: throw new AssertionError(); } }
@Override public int hashCode() { int hash = 3; hash = 61 * hash + (this.text != null ? this.text.hashCode() : 0); hash = 61 * hash + (this.type != null ? this.type.hashCode() : 0); hash = 61 * hash + (this.forceUppercase ? 1 : 0); hash = 61 * hash + (this.includeDefault ? 1 : 0); return hash; }
@Override public int hashCode() { int hash = 7; hash = 83 * hash + (this.id != null ? this.id.hashCode() : 0); hash = 83 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 83 * hash + (this.type != null ? this.type.hashCode() : 0); hash = 83 * hash + (this.includeDefault ? 1 : 0); return hash; }
@Override public int hashCode() { int hash = 3; hash = 61 * hash + (this.text != null ? this.text.hashCode() : 0); hash = 61 * hash + (this.type != null ? this.type.hashCode() : 0); hash = 61 * hash + (this.forceUppercase ? 1 : 0); hash = 61 * hash + (this.includeDefault ? 1 : 0); return hash; }