public String hashCodeList ( List < RecordTemplateSpec . Field > fields ) { StringBuilder sb = new StringBuilder ( ) ; Iterator < RecordTemplateSpec . Field > iter = fields . iterator ( ) ; while ( iter . hasNext ( ) ) { RecordTemplateSpec . Field field = iter . next ( ) ; Type schemaType = field . getSchemaField ( ) . getType ( ) . getType ( ) ; sb . append ( escapeKeyword ( field . getSchemaField ( ) . getName ( ) ) ) ; if ( iter . hasNext ( ) ) sb . append ( ", " ) ; } return sb . toString ( ) ; }
Returns Java source code that computes the hashCodes of each of the fields as a list of parameters .