@Test public void testPrepareTagList() throws IOException { Subject subject = new Subject(); Tag shortTag = new Tag("short", "abc"); Tag longTag = new Tag("long", "1234567890"); List<Tag> aTagList = new ArrayList<Tag>(2); aTagList.add(shortTag); aTagList.add(longTag); List<Object> preparedTagList = subject.prepareTagList(aTagList, shortTag.getValue().length()); Assert.assertNotNull(preparedTagList); Assert.assertEquals(5, preparedTagList.size()); Assert.assertEquals(shortTag, preparedTagList.get(0)); Assert.assertEquals(longTag.getKey(), ((Tag) preparedTagList.get(1)).getKey()); Assert.assertNull(((Tag) preparedTagList.get(2)).getKey()); Assert.assertNull(((Tag) preparedTagList.get(3)).getKey()); Assert.assertNull(((Tag) preparedTagList.get(4)).getKey()); Assert.assertEquals("1", ((Tag) preparedTagList.get(1)).getValue()); Assert.assertEquals("234", ((Tag) preparedTagList.get(2)).getValue()); Assert.assertEquals("567", ((Tag) preparedTagList.get(3)).getValue()); Assert.assertEquals("890", ((Tag) preparedTagList.get(4)).getValue()); }
public List<Object> prepareTagList(final Collection<Tag> aTagList, final int aNumtagvalchars) { final List<Object> retval = new ArrayList<Object>(aTagList.size()); for (Tag input : aTagList) { retval.addAll(prepareTag(input, aNumtagvalchars)); } return retval; }
AbstractEntityFile extends FixedRecordFile { public List<Object> prepareTagList(final Collection<Tag> aTagList, final int aNumtagvalchars) { final List<Object> retval = new ArrayList<Object>(aTagList.size()); for (Tag input : aTagList) { retval.addAll(prepareTag(input, aNumtagvalchars)); } return retval; } }
AbstractEntityFile extends FixedRecordFile { public List<Object> prepareTagList(final Collection<Tag> aTagList, final int aNumtagvalchars) { final List<Object> retval = new ArrayList<Object>(aTagList.size()); for (Tag input : aTagList) { retval.addAll(prepareTag(input, aNumtagvalchars)); } return retval; } protected  AbstractEntityFile(final File aFileName,
            final IIDIndexFile anIndex,
            final AttrNames anAttrNamesFile); }
AbstractEntityFile extends FixedRecordFile { public List<Object> prepareTagList(final Collection<Tag> aTagList, final int aNumtagvalchars) { final List<Object> retval = new ArrayList<Object>(aTagList.size()); for (Tag input : aTagList) { retval.addAll(prepareTag(input, aNumtagvalchars)); } return retval; } protected  AbstractEntityFile(final File aFileName,
            final IIDIndexFile anIndex,
            final AttrNames anAttrNamesFile); int getUsedRecordCount(final long firstRecordNr, final long anElementID); boolean isRecordUnused(final ByteBuffer record); void setIndex(final IIDIndexFile aIndex); List<Object> prepareTagList(final Collection<Tag> aTagList, final int aNumtagvalchars); }
AbstractEntityFile extends FixedRecordFile { public List<Object> prepareTagList(final Collection<Tag> aTagList, final int aNumtagvalchars) { final List<Object> retval = new ArrayList<Object>(aTagList.size()); for (Tag input : aTagList) { retval.addAll(prepareTag(input, aNumtagvalchars)); } return retval; } protected  AbstractEntityFile(final File aFileName,
            final IIDIndexFile anIndex,
            final AttrNames anAttrNamesFile); int getUsedRecordCount(final long firstRecordNr, final long anElementID); boolean isRecordUnused(final ByteBuffer record); void setIndex(final IIDIndexFile aIndex); List<Object> prepareTagList(final Collection<Tag> aTagList, final int aNumtagvalchars);  }