public < T > GenericMarker < T > createMarker ( T markerContext , GenericMapWidget mapWidget ) { this . map = mapWidget ; validateRequiredParameters ( ) ; if ( map instanceof GoogleV3MapWidget ) { return new GoogleV3Marker < T > ( this , markerContext ) ; } if ( map instanceof OfflineMapWidget ) { return new OfflineMapMarker < T > ( this , markerContext ) ; } throw new UnsupportedOperationException ( ) ; }
Final build method of the builder called once all parameters are setup for the Generic Marker