Lines Matching refs:Segment
31 * SegmentCache caches <code>Segment</code>s to avoid continually creating
32 * and destroying of <code>Segment</code>s. A common use of this class would
35 * Segment segment = segmentCache.getSegment();
51 private List<Segment> segments;
62 * A convenience method to get a Segment from the shared
65 public static Segment getSharedSegment() {
70 * A convenience method to release a Segment to the shared
73 public static void releaseSharedSegment(Segment segment) {
83 segments = new ArrayList<Segment>(11);
87 * Returns a <code>Segment</code>. When done, the <code>Segment</code>
90 public Segment getSegment() {
102 * Releases a Segment. You should not use a Segment after you release it,
103 * and you should NEVER release the same Segment more than once, eg:
110 public void releaseSegment(Segment segment) {
123 * a Segment can successfully be shared.
125 private static class CachedSegment extends Segment {