/** * Return a CollectionType that matches the given name by either matching * a known type (ignoring case) or creating an unknown type. * * @param name name of the desired CollectionType * @return the named CollectionType or null if given name is null. */ public static CollectionType getType(String name) { if (name == null) return null; CollectionType type = findType( name); return type != null ? type : new CollectionType( name, false); }
/** CollectionType with same name are equal. */ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CollectionType)) return false; return o.hashCode() == this.hashCode(); } }
buff.append(" <li><em>Collection type: </em>").append(StringUtil2.quoteHtmlContent(ds.getCollectionType().toString())).append("</li>\n");
buff.append(" <li><em>Collection type: </em>").append(StringUtil2.quoteHtmlContent(ds.getCollectionType().toString())).append("</li>\n");
/** * Return a CollectionType that matches the given name by either matching * a known type (ignoring case) or creating an unknown type. * * @param name name of the desired CollectionType * @return the named CollectionType or null if given name is null. */ public static CollectionType getType(String name) { if (name == null) return null; CollectionType type = findType( name); return type != null ? type : new CollectionType( name, false); }
/** CollectionType with same name are equal. */ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CollectionType)) return false; return o.hashCode() == this.hashCode(); } }
buff.append(" <li><em>Collection type: </em>").append(StringUtil2.quoteHtmlContent(ds.getCollectionType().toString())).append("</li>\n");
/** * Return a CollectionType that matches the given name by either matching * a known type (ignoring case) or creating an unknown type. * * @param name name of the desired CollectionType * @return the named CollectionType or null if given name is null. */ public static CollectionType getType(String name) { if (name == null) return null; CollectionType type = findType( name); return type != null ? type : new CollectionType( name, false); }
/** CollectionType with same name are equal. */ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CollectionType)) return false; return o.hashCode() == this.hashCode(); } }
dsElem.setAttribute("collectionType", ds.getCollectionType().toString()); if (ds.isHarvest()) dsElem.setAttribute("harvest", "true");
result = 37 * result + getCollectionType().hashCode();
dsElem.setAttribute("collectionType", ds.getCollectionType().toString()); if (ds.isHarvest()) dsElem.setAttribute("harvest", "true");
result = 37 * result + getCollectionType().hashCode();
dsElem.setAttribute("collectionType", ds.getCollectionType().toString()); if (ds.isHarvest()) dsElem.setAttribute("harvest", "true");
result = 37 * result + getCollectionType().hashCode();