Package com.itextpdf.barcodes
Class BarcodePDF417.SegmentList
java.lang.Object
com.itextpdf.barcodes.BarcodePDF417.SegmentList
- Enclosing class:
- BarcodePDF417
An utility class that encapsulates a list of segments.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
list
-
-
Constructor Details
-
SegmentList
protected SegmentList()
-
-
Method Details
-
add
public void add(char type, int start, int end) Adds a new segment to the list- Parameters:
-
type
- the type of the segment -
start
- the start position -
end
- the end position
-
get
Gets the segment at the specified index- Parameters:
-
idx
- the index - Returns:
- the segment at the specified index or null if the index is out of bounds
-
remove
public void remove(int idx) Removes the segment at the specified index- Parameters:
-
idx
- the index
-
size
public int size()Gets the number of segments in the list- Returns:
- the number of segments in the list
-