use as() method of base segment in reference counting segment (#3921)

This commit is contained in:
Parag Jain 2017-02-09 20:24:47 -06:00 committed by GitHub
parent ca2b04f0fd
commit 33c635aff2
1 changed files with 5 additions and 0 deletions

View File

@ -180,4 +180,9 @@ public class ReferenceCountingSegment extends AbstractSegment
baseSegment.close();
}
}
public <T> T as(Class<T> clazz)
{
return getBaseSegment().as(clazz);
}
}