@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } BatchOperation other = (BatchOperation) obj; return eq(getType(), other.getType()); }
@Override public String toString() { return "{BatchOperation type=" + getAttributeValue(TYPE) + "}"; } }
/** * Sets the operation type. * * @param type operation type or <code>null</code> to reset */ public BatchOperation setType(BatchOperationType type) { setAttributeValue(TYPE, type); return this; }
/** * Returns whether it has the operation type. * * @return whether it has the operation type */ public boolean hasType() { return getType() != null; }
/** * Constructs a new instance with the given operation type. * * @param type operation type. */ public BatchOperation(BatchOperationType type) { this(); setType(type); }
/** * Sets the batch operation type on an element. */ private static void setBatchOperationType(Element entry, BatchOperationType op) { entry.setElement(BatchOperation.KEY, (op == null) ? null : new BatchOperation(op)); }
/** * Returns whether it has the operation type. * * @return whether it has the operation type */ public boolean hasType() { return getType() != null; }
/** * Constructs a new instance with the given operation type. * * @param type operation type. */ public BatchOperation(BatchOperationType type) { this(); setType(type); }
/** * Sets the batch operation type on an element. */ private static void setBatchOperationType(Element entry, BatchOperationType op) { entry.setElement(BatchOperation.KEY, (op == null) ? null : new BatchOperation(op)); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } BatchOperation other = (BatchOperation) obj; return eq(getType(), other.getType()); }
/** * Returns whether it has the operation type. * * @return whether it has the operation type */ public boolean hasType() { return getType() != null; }
/** * Returns the operation type. * * @return operation type */ public BatchOperationType getType() { return getAttributeValue(TYPE); }
/** * Constructs a new instance with the given operation type. * * @param type operation type. */ public BatchOperation(BatchOperationType type) { this(); setType(type); }
/** * Sets the operation type. * * @param type operation type or <code>null</code> to reset */ public BatchOperation setType(BatchOperationType type) { setAttributeValue(TYPE, type); return this; }
/** * Sets the batch operation type on an element. */ private static void setBatchOperationType(Element entry, BatchOperationType op) { entry.setElement(BatchOperation.KEY, (op == null) ? null : new BatchOperation(op)); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } BatchOperation other = (BatchOperation) obj; return eq(getType(), other.getType()); }
/** * Returns the operation type. * * @return operation type */ public BatchOperationType getType() { return getAttributeValue(TYPE); }
/** * Sets the operation type. * * @param type operation type or <code>null</code> to reset */ public BatchOperation setType(BatchOperationType type) { setAttributeValue(TYPE, type); return this; }