/** * Answer a polymorphic object that presents <i>this</i> in a way which satisfies type * t. * @param t A type * @return A polymorphic instance, possibly but not necessarily this, that conforms to t. */ protected final <X extends T> X asInternal( Class<X> t ) { X other = findExistingView( t ); return other == null ? this.convertTo( t ) : other; }
/** * Answer a polymorphic object that presents <i>this</i> in a way which satisfies type * t. * @param t A type * @return A polymorphic instance, possibly but not necessarily this, that conforms to t. */ protected final <X extends T> X asInternal( Class<X> t ) { X other = findExistingView( t ); return other == null ? this.convertTo( t ) : other; }