/** * Provides typesafe covariant return of this instance */ protected final T covariantReturn() { try { return this.getActualClass().cast(this); } catch (final ClassCastException cce) { log.log(Level.SEVERE, "The class specified by getActualClass is not a valid assignment target for this instance;" + " developer error"); throw cce; } } }
/** * Provides typesafe covariant return of this instance */ protected final T covariantReturn() { try { return this.getActualClass().cast(this); } catch (final ClassCastException cce) { log.log(Level.SEVERE, "The class specified by getActualClass is not a valid assignment target for this instance;" + " developer error"); throw cce; } } }
/** * {@inheritDoc} * * @see org.jboss.shrinkwrap.api.Archive#filter(Filter) */ @Override public T filter(Filter<ArchivePath> filter) { return this.shallowCopy(filter).as(getActualClass()); }
/** * {@inheritDoc} * * @see org.jboss.shrinkwrap.api.Archive#filter(Filter) */ @Override public T filter(Filter<ArchivePath> filter) { return this.shallowCopy(filter).as(getActualClass()); }