public List < ColumnRelation > toList ( ) { List < ColumnRelation > ret = new ArrayList <> ( ) ; ret . add ( this ) ; if ( getNextRelation ( ) . isPresent ( ) ) { ret . addAll ( getNextRelation ( ) . get ( ) . toList ( ) ) ; } return ret ; }
Returns a chain of column relations as list