public CStation<?> getMatchingStation( CStationContainer container, CStation<?> station ){ if( container == this ){ return station; } if( container instanceof CContentArea ){ CContentArea other = (CContentArea)container; if( other.getStationCount() == getStationCount() ){ int index = other.indexOf( station ); if( index != -1 ){ return getStation( index ); } } } return null; }
public CStation<?> getMatchingStation( CStationContainer container, CStation<?> station ){ if( container == this ){ return station; } if( container instanceof CContentArea ){ CContentArea other = (CContentArea)container; if( other.getStationCount() == getStationCount() ){ int index = other.indexOf( station ); if( index != -1 ){ return getStation( index ); } } } return null; }