boolean contains(WriteOrder<?> e) {
    return (e.getPreviousInWriteOrder() != null)
        || (e.getNextInWriteOrder() != null)
        || (e == first);
  }
boolean contains ( WriteOrder < ? > e ) { return ( e . getPreviousInWriteOrder ( ) != null ) || ( e . getNextInWriteOrder ( ) != null ) || ( e == first ) ; }
A fast-path containment check