sprockets/src/main/java/net/sf/sprockets/view/Views.java
@SuppressWarnings("unchecked")
    public static <T extends View> T inflate(ViewStub stub, @Nullable T view) {
        return view == null ? (T) stub.inflate() : view;
    }
@SuppressWarnings("unchecked")
    public static <T extends View> T inflate(ViewStub stub, @Nullable T view) {
        return view == null ? (T) stub.inflate() : view;
    }
@ SuppressWarnings ( "unchecked" ) public static < T extends View > T inflate ( ViewStub stub , @ Nullable T view ) { return view == null ? ( T ) stub . inflate ( ) : view ; }
Inflate the ViewStub if the View is null. Otherwise just get the previously inflated View.

@since 4.0.0
Inflate the ViewStub if the View is null . Otherwise just get the previously inflated View .