/** * Create a new tuple. */ public Tuple(IOAVState state, Tuple last, Object object) { this.state = state; this.object = object; this.last = last; this.size = last==null? 1: last.size()+1; int hash = 31 + ((last == null) ? 0 : last.hashCode()); hash = 31 * hash + ((object == null) ? 0 : object.hashCode()); this.hashcode = hash; }
/** * Create a new tuple. */ public Tuple(IOAVState state, Tuple last, Object object) { this.state = state; this.object = object; this.last = last; this.size = last==null? 1: last.size()+1; int hash = 31 + ((last == null) ? 0 : last.hashCode()); hash = 31 * hash + ((object == null) ? 0 : object.hashCode()); this.hashcode = hash; }