Class BarcodePDF417.Segment

  • Enclosing class:
    BarcodePDF417

    protected static class BarcodePDF417.Segment
    extends java.lang.Object
    A container that encapsulates all data needed for a segment.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int end  
      private int start  
      private char type  
    • Constructor Summary

      Constructors 
      Constructor Description
      Segment​(char type, int start, int end)
      Creates a new BarcodePDF417.Segment instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getEnd()
      Retrieves the end of the segment.
      int getStart()
      Retrieves the start of the segment.
      char getType()
      Retrieves the type of the segment.
      void setEnd​(int end)
      Sets the end of the segment.
      void setStart​(int start)
      Sets the start of the segment.
      void setType​(char type)
      Sets the type of the segment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

        private char type
      • start

        private int start
      • end

        private int end
    • Constructor Detail

      • Segment

        public Segment​(char type,
                       int start,
                       int end)
        Creates a new BarcodePDF417.Segment instance.
        Parameters:
        type - the type of segment
        start - the start of the segment
        end - the end of the segment
    • Method Detail

      • getType

        public char getType()
        Retrieves the type of the segment.
        Returns:
        segment type
      • setType

        public void setType​(char type)
        Sets the type of the segment.
        Parameters:
        type - segment type
      • getStart

        public int getStart()
        Retrieves the start of the segment.
        Returns:
        segment start
      • setStart

        public void setStart​(int start)
        Sets the start of the segment.
        Parameters:
        start - segment start
      • getEnd

        public int getEnd()
        Retrieves the end of the segment.
        Returns:
        segment end
      • setEnd

        public void setEnd​(int end)
        Sets the end of the segment.
        Parameters:
        end - segment end