public TypeSerializer < T > getElementSerializer ( ) { // call getSerializer() here to get the initialization check and proper error message final TypeSerializer < List < T > > rawSerializer = getSerializer ( ) ; if ( ! ( rawSerializer instanceof ListSerializer ) ) { throw new IllegalStateException ( ) ; } return ( ( ListSerializer < T > ) rawSerializer ) . getElementSerializer ( ) ; }
Gets the serializer for the elements contained in the list .