/** * Adds unknown types to this app's list of data types. Called on create(). * * @param objects a list of new objects */ public void addDatatypes(ParaObject... objects) { // register a new data type if (objects != null && objects.length > 0) { for (ParaObject obj : objects) { if (obj != null && obj.getType() != null) { addDatatype(obj.getPlural(), obj.getType()); } } } }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ParaObject other = (ParaObject) obj; if (!Objects.equals(this.id, other.getId())) { return false; } return true; }