@Override public Not clone() throws CloneNotSupportedException { Not result = (Not) super.clone(); if(result.condition != null) { result.condition = result.condition.clone(); } return result; }
@Override public Not clone() throws CloneNotSupportedException { Not result = (Not) super.clone(); if(result.condition != null) { result.condition = result.condition.clone(); } return result; }
@Override public Or clone() throws CloneNotSupportedException { Or result = (Or) super.clone(); if(result.conditions != null) { List<Condition> clonedConditions = new ArrayList<>(conditions.size()); for(Condition condition : result.conditions) { clonedConditions.add(condition.clone()); } result.conditions = clonedConditions; } return result; }
@Override public And clone() throws CloneNotSupportedException { And result = (And) super.clone(); if(result.conditions != null) { List<Condition> clonedConditions = new ArrayList<>(conditions.size()); for(Condition condition : result.conditions) { clonedConditions.add(condition.clone()); } result.conditions = clonedConditions; } return result; }
@Override public Or clone() throws CloneNotSupportedException { Or result = (Or) super.clone(); if(result.conditions != null) { List<Condition> clonedConditions = new ArrayList<>(conditions.size()); for(Condition condition : result.conditions) { clonedConditions.add(condition.clone()); } result.conditions = clonedConditions; } return result; }
@Override public And clone() throws CloneNotSupportedException { And result = (And) super.clone(); if(result.conditions != null) { List<Condition> clonedConditions = new ArrayList<>(conditions.size()); for(Condition condition : result.conditions) { clonedConditions.add(condition.clone()); } result.conditions = clonedConditions; } return result; }
public void internalTestCloneEquals(Condition condition) throws CloneNotSupportedException { Condition clone = condition.clone(); internalTestEquals(condition, clone); }