Package com.itextpdf.barcodes
Class BarcodePDF417.SegmentList
- java.lang.Object
-
- com.itextpdf.barcodes.BarcodePDF417.SegmentList
-
- Enclosing class:
- BarcodePDF417
protected static class BarcodePDF417.SegmentList extends java.lang.ObjectAn utility class that encapsulates a list of segments.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<BarcodePDF417.Segment>list
-
Constructor Summary
Constructors Modifier Constructor Description protectedSegmentList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(char type, int start, int end)Adds a new segment to the listBarcodePDF417.Segmentget(int idx)Gets the segment at the specified indexvoidremove(int idx)Removes the segment at the specified indexintsize()Gets the number of segments in the list
-
-
-
Field Detail
-
list
protected java.util.List<BarcodePDF417.Segment> list
-
-
Method Detail
-
add
public void add(char type, int start, int end)Adds a new segment to the list- Parameters:
type- the type of the segmentstart- the start positionend- the end position
-
get
public BarcodePDF417.Segment get(int idx)
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
-
-