SubtagSet implements Serializable, Cloneable, Iterable<Subtag>,
		Comparable<SubtagSet> { public List<Subtag> asList() { return Arrays.asList(toArray()); } protected  SubtagSet(Subtag primary); String toString(); Iterator<Subtag> iterator(); boolean contains(Subtag subtag); boolean contains(String tag); boolean contains(String tag, Subtag.Type type); int length(); boolean isValid(); @SuppressWarnings("unused") int count(); Subtag get(int index); int hashCode(); boolean equals(Object obj); Subtag[] toArray(); List<Subtag> asList(); int compareTo(SubtagSet o);  }
@Test public void testAsList() { Subtag lang = new Subtag(Language.EN); Subtag region = new Subtag(Region.US); lang.setNext(region); ConcreteSubtagSet set = new ConcreteSubtagSet(lang); List<Subtag> list = set.asList(); assertEquals(new Integer(2), new Integer(list.size())); assertEquals(lang, list.get(0)); assertEquals(region, list.get(1)); }