public StringBuilder relatedTo ( HttpCode < TRANS , ? > code , StringBuilder sb ) { boolean first = true ; for ( Pair < String , Pair < HttpCode < TRANS , ? > , List < Pair < String , Object > > > > pair : types ) { if ( code == null || pair . y . x == code ) { if ( first ) { first = false ; } else { sb . append ( ' ' ) ; } sb . append ( pair . x ) ; for ( Pair < String , Object > prop : pair . y . y ) { // Don't print "Q". it's there for internal use, but it is only meaningful for "Accepts" if ( ! prop . x . equals ( Q ) || ! prop . y . equals ( 1f ) ) { sb . append ( ' ' ) ; sb . append ( prop . x ) ; sb . append ( ' ' ) ; sb . append ( prop . y ) ; } } } } return sb ; }
Print on String Builder content related to specific Code