1 38 39 40 package com.sun.xml.fastinfoset.util; 41 42 public abstract class ValueArray { 43 public static final int DEFAULT_CAPACITY = 10; 44 public static final int MAXIMUM_CAPACITY = Integer.MAX_VALUE; 45 46 protected int _size; 47 48 protected int _readOnlyArraySize; 49 50 protected int _maximumCapacity; 51 52 public int getSize() { 53 return _size; 54 } 55 56 public int getMaximumCapacity() { 57 return _maximumCapacity; 58 } 59 60 public void setMaximumCapacity(int maximumCapacity) { 61 _maximumCapacity = maximumCapacity; 62 } 63 64 public abstract void setReadOnlyArray(ValueArray array, boolean clear); 65 66 public abstract void clear(); 67 } 68 | Popular Tags |