Class CharVector

java.lang.Object
com.lowagie.text.pdf.hyphenation.CharVector
All Implemented Interfaces:
Serializable, Cloneable

@Deprecated public class CharVector extends Object implements Cloneable, Serializable
Deprecated.
This class implements a simple char vector with access to the underlying array.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private char[]
    Deprecated.
    The encapsulated array
    private int
    Deprecated.
     
    private static final int
    Deprecated.
    Capacity increment size
    private int
    Deprecated.
    Points to next free item
    private static final long
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
    CharVector(char[] a)
    Deprecated.
     
    CharVector(char[] a, int capacity)
    Deprecated.
     
    CharVector(int capacity)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    alloc(int size)
    Deprecated.
     
    int
    Deprecated.
    returns current capacity of array
    void
    Deprecated.
    Reset Vector but don't resize or clear elements
    Deprecated.
     
    char
    get(int index)
    Deprecated.
     
    char[]
    Deprecated.
     
    int
    Deprecated.
     
    void
    put(int index, char val)
    Deprecated.
     
    void
    Deprecated.
     

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Deprecated.
      See Also:
    • DEFAULT_BLOCK_SIZE

      private static final int DEFAULT_BLOCK_SIZE
      Deprecated.
      Capacity increment size
      See Also:
    • blockSize

      private int blockSize
      Deprecated.
    • array

      private char[] array
      Deprecated.
      The encapsulated array
    • n

      private int n
      Deprecated.
      Points to next free item
  • Constructor Details

    • CharVector

      public CharVector()
      Deprecated.
    • CharVector

      public CharVector(int capacity)
      Deprecated.
    • CharVector

      public CharVector(char[] a)
      Deprecated.
    • CharVector

      public CharVector(char[] a, int capacity)
      Deprecated.
  • Method Details

    • clear

      public void clear()
      Deprecated.
      Reset Vector but don't resize or clear elements
    • clone

      public Object clone()
      Deprecated.
      Overrides:
      clone in class Object
    • getArray

      public char[] getArray()
      Deprecated.
    • length

      public int length()
      Deprecated.
      Returns:
      the number of items in array
    • capacity

      public int capacity()
      Deprecated.
      returns current capacity of array
      Returns:
      the current capacity of array
    • put

      public void put(int index, char val)
      Deprecated.
    • get

      public char get(int index)
      Deprecated.
    • alloc

      public int alloc(int size)
      Deprecated.
    • trimToSize

      public void trimToSize()
      Deprecated.