*/
@EqualsAndHashCode(callSuper = false)
@ToString
-public class ToscaConstraintLogical extends ToscaConstraint {
+public class JpaToscaConstraintLogical extends JpaToscaConstraint {
private static final long serialVersionUID = 2562306457768745444L;
public enum Operation {
private final Operation operation;
/**
- * The Default Constructor creates a {@link ToscaConstraintLogical} object with a null key.
+ * The Default Constructor creates a {@link JpaToscaConstraintLogical} object with a null key.
*/
- public ToscaConstraintLogical() {
+ public JpaToscaConstraintLogical() {
this(new PfReferenceKey());
}
/**
- * The Key Constructor creates a {@link ToscaConstraintLogical} object with the given concept key.
+ * The Key Constructor creates a {@link JpaToscaConstraintLogical} object with the given concept key.
*
* @param key the key of the constraint
*/
- public ToscaConstraintLogical(final PfReferenceKey key) {
+ public JpaToscaConstraintLogical(final PfReferenceKey key) {
this(key, Operation.EQ);
}
/**
- * The Key Constructor creates a {@link ToscaConstraintLogical} object with the given concept key and operation.
+ * The Key Constructor creates a {@link JpaToscaConstraintLogical} object with the given concept key and operation.
*
* @param key the key of the constraint
* @param operation the logical operation of the constraint
*
*/
- public ToscaConstraintLogical(final PfReferenceKey key, @NonNull final Operation operation) {
+ public JpaToscaConstraintLogical(final PfReferenceKey key, @NonNull final Operation operation) {
super(key);
this.operation = operation;
}
*
* @param copyConcept the concept to copy from
*/
- public ToscaConstraintLogical(@NonNull final ToscaConstraintLogical copyConcept) {
+ public JpaToscaConstraintLogical(@NonNull final JpaToscaConstraintLogical copyConcept) {
throw new PfModelRuntimeException(Response.Status.INTERNAL_SERVER_ERROR, "cannot copy an immutable constraint");
}
return this.hashCode() - otherConcept.hashCode();
}
- final ToscaConstraintLogical other = (ToscaConstraintLogical) otherConcept;
+ final JpaToscaConstraintLogical other = (JpaToscaConstraintLogical) otherConcept;
int result = super.compareTo(other);
if (result != 0) {