public boolean containsDomain ( List < Dimension > wantDimensions ) { for ( Dimension d : wantDimensions ) { if ( ! domain . contains ( d ) ) return false ; } return true ; }
Do we have all the dimensions in the list?