/** Get the real List from a LazyList. * * @param list A LazyList returned from LazyList.add(Object) * @return The List of added items, which may be an EMPTY_LIST * or a SingletonList. */ public static<E> List<E> getList(Object list) { return getList(list,false); }
public List getThrowables() { return LazyList.getList(nested); }
/** Get multiple values. * Single valued entries are converted to singleton lists. * @param name The entry key. * @return Unmodifieable List of values. */ public List getValues(Object name) { return LazyList.getList(_map.get(name),true); }
@SuppressWarnings("unchecked") public static<E> Iterator<E> iterator(Object list) { if (list==null) { List<E> empty=Collections.emptyList(); return empty.iterator(); } if (list instanceof List) { return ((List<E>)list).iterator(); } List<E> l=getList(list); return l.iterator(); }
@SuppressWarnings("unchecked") public static<E> ListIterator<E> listIterator(Object list) { if (list==null) { List<E> empty=Collections.emptyList(); return empty.listIterator(); } if (list instanceof List) return ((List<E>)list).listIterator(); List<E> l=getList(list); return l.listIterator(); }
public String toString() { if (LazyList.size(nested)>0) return "org.mortbay.util.MultiException"+ LazyList.getList(nested); return "org.mortbay.util.MultiException[]"; }
public Object get(Object name) { Object l=_map.get(name); switch(LazyList.size(l)) { case 0: return null; case 1: Object o=LazyList.get(l,0); return o; default: return LazyList.getList(l,true); } }
/** Get all entries matched by the path. * Best match first. * @param path Path to match * @return List of Map.Entry instances key=pathSpec */ public List getMatches(String path) { return LazyList.getList(getLazyMatches(path)); }
return Collections.enumeration(__defaultLocale); return Collections.enumeration(LazyList.getList(langs));
return LazyList.getList(satRanges,true);
return LazyList.getList(entries);