new Segment()
.@Deprecated public class SegmentCache extends Object
Segment
to prevent excessive
object creation.Constructor and Description |
---|
SegmentCache()
Deprecated.
Constructs SegmentCache instance.
|
Modifier and Type | Method and Description |
---|---|
Segment |
getSegment()
Deprecated.
Simply returns
new Segment() . |
static SegmentCache |
getSharedInstance()
Deprecated.
Simply use
new Segment() . |
void |
releaseSegment(Segment segment)
Deprecated.
Does nothing.
|
public static SegmentCache getSharedInstance()
new Segment()
.public Segment getSegment()
new Segment()
.Segment
. When done, the segment
should be recycled by invoking SegmentCache.releaseSegment(Segment)
.public void releaseSegment(Segment segment)
segmentCache.releaseSegment(segment); segmentCache.releaseSegment(segment);
SegmentCache.getSegment()
can be released.segment
- segment to be released.