public <T> void setObjectList(ListDataKey<T> key, List<T> objects) {
        if (key == null) {
            throw new IllegalArgumentException("key must not be null");
        }
        if (objects == null && !key.allowNull()) {
            throw new IllegalArgumentException("list key \"" + key.getName() + "\" disallows null values but object was null");
        }
        data.put(key.getName(), deepListCopy(objects));
    }
public < T > void setObjectList ( ListDataKey < T > key , List < T > objects ) { if ( key == null ) { throw new IllegalArgumentException ( "key must not be null" ) ; } if ( objects == null && ! key . allowNull ( ) ) { throw new IllegalArgumentException ( "list key \"" + key . getName ( ) + "\" disallows null values but object was null" ) ; } data . put ( key . getName ( ) , deepListCopy ( objects ) ) ; }
stores a list of objects for a given key

@param <T>
@param key a list data key (where isList is set to true)
@param objects