private void validateAttributesToCreateANewRendererViewHolder ( ) { if ( viewType == null ) { throw new NullContentException ( "RendererBuilder needs a view type to create a RendererViewHolder" ) ; } if ( layoutInflater == null ) { throw new NullLayoutInflaterException ( "RendererBuilder needs a LayoutInflater to create a RendererViewHolder" ) ; } if ( parent == null ) { throw new NullParentException ( "RendererBuilder needs a parent to create a RendererViewHolder" ) ; } }
Throws one RendererException if the viewType layoutInflater or parent are null .