@Test public void testToArray() { Options options = new Options(); options.add(Integer.valueOf(1), "txt", false); options.add(Integer.valueOf(2), "txt2", false); assertEquals(2, options.toArray().length); }
@Override public Object[] toArray() { return list.toArray(); }
Options extends AbstractSet<OptionEntry> implements Cloneable, Serializable { @Override public Object[] toArray() { return list.toArray(); } }
Options extends AbstractSet<OptionEntry> implements Cloneable, Serializable { @Override public Object[] toArray() { return list.toArray(); } Options();  Options(Options other);  Options(OptionEntry [] entries);  Options(Class<?> enumType); }
Options extends AbstractSet<OptionEntry> implements Cloneable, Serializable { @Override public Object[] toArray() { return list.toArray(); } Options();  Options(Options other);  Options(OptionEntry [] entries);  Options(Class<?> enumType); @Override Options clone(); OptionEntry getEntry(Object value); String get(Object value); boolean isActive(Object value); Object getValueAt(int i); String getTextAt(int i); Set<Object> getValues(); void set(Object value, String text, boolean active, InsertPos pos); void set(Object value, String text, InsertPos pos); void set(Object value, String text); void add(Object value, String text, boolean active); @Override boolean add(OptionEntry option); @Override void clear(); @Override boolean contains(Object value); boolean containsNull(); boolean exists(Object value); @Override boolean isEmpty(); @Override Iterator<OptionEntry> iterator(); @Override boolean remove(Object value); @Override int size(); @Override Object[] toArray(); @Override String toString(); void addXml(Element element, long flags); }
Options extends AbstractSet<OptionEntry> implements Cloneable, Serializable { @Override public Object[] toArray() { return list.toArray(); } Options();  Options(Options other);  Options(OptionEntry [] entries);  Options(Class<?> enumType); @Override Options clone(); OptionEntry getEntry(Object value); String get(Object value); boolean isActive(Object value); Object getValueAt(int i); String getTextAt(int i); Set<Object> getValues(); void set(Object value, String text, boolean active, InsertPos pos); void set(Object value, String text, InsertPos pos); void set(Object value, String text); void add(Object value, String text, boolean active); @Override boolean add(OptionEntry option); @Override void clear(); @Override boolean contains(Object value); boolean containsNull(); boolean exists(Object value); @Override boolean isEmpty(); @Override Iterator<OptionEntry> iterator(); @Override boolean remove(Object value); @Override int size(); @Override Object[] toArray(); @Override String toString(); void addXml(Element element, long flags);  }