@Test public void testDotLength() { assertEquals(8, empty.dotLength()); assertEquals(2, sequenceAB.dotLength()); assertEquals(3, sequenceABC.dotLength()); }
@Override public int dotLength() { if(isEmpty()) return 8; int len = 0; for(Symbol s: this) { len += s.length(); } return len; }
Sequence extends ArrayList<Symbol> implements AbstractSequence { @Override public int dotLength() { if(isEmpty()) return 8; int len = 0; for(Symbol s: this) { len += s.length(); } return len; } }
Sequence extends ArrayList<Symbol> implements AbstractSequence { @Override public int dotLength() { if(isEmpty()) return 8; int len = 0; for(Symbol s: this) { len += s.length(); } return len; } Sequence(int size);  Sequence();  Sequence(ArrayList<Symbol> symbols); }
Sequence extends ArrayList<Symbol> implements AbstractSequence { @Override public int dotLength() { if(isEmpty()) return 8; int len = 0; for(Symbol s: this) { len += s.length(); } return len; } Sequence(int size);  Sequence();  Sequence(ArrayList<Symbol> symbols); String toString(); String toDotString(); Sequence copy(); static void printSequenceArray(Sequence[] arr); @Override int dotLength(); @Override void getImpl(StringBuilder sb, Map<Symbol, Integer> symToNum); }
Sequence extends ArrayList<Symbol> implements AbstractSequence { @Override public int dotLength() { if(isEmpty()) return 8; int len = 0; for(Symbol s: this) { len += s.length(); } return len; } Sequence(int size);  Sequence();  Sequence(ArrayList<Symbol> symbols); String toString(); String toDotString(); Sequence copy(); static void printSequenceArray(Sequence[] arr); @Override int dotLength(); @Override void getImpl(StringBuilder sb, Map<Symbol, Integer> symToNum);  }