Example #1
0
  public void addPartCount(String part, short count) {
    PartCount partCount = new PartCount();
    partCount.setCount(count);
    partCount.setPart(part);

    partCountMap.put(part, partCount);
  }
Example #2
0
  public short getCount(String part) {
    PartCount pageCount = this.partCountMap.get(part);

    return (pageCount == null) ? 0 : pageCount.getCount();
  }