public static String toString(List aList) {
    StringBuilder aStr = new StringBuilder();
    aStr.append("List of size " + aList.size() + "\n");
    for (Object anObj : aList) {
      if (anObj instanceof Position) {
        Position p = (Position) (anObj);
        aStr.append(p);
      }
      aStr.append("\n");
    }
    return aStr.toString();
  }
Represents a number of shares of a stock ("security") held in a {@link NewPortfolio}.

<P>

This class is <code>Serializable</code> because we want it to be distributed to multiple members
of a distributed system. Because this class is <code>Declarable</code>, we can describe instances
of it in a GemFire <code>cache.xml</code> file.

@since GemFire 4.0
geode-junit/src/main/java/parReg/query/unittest/Position.java