public Collection<Label> list(String name)
    {
        List<Label> ret = new ArrayList<Label>();
        Collection<Label> labels = list();
        for(Label label : labels)
        {
            if(name == null || label.getKey().toLowerCase().indexOf(name) != -1)
                ret.add(label);
        }
        return ret;
    }
public Collection < Label > list ( String name ) { List < Label > ret = new ArrayList < Label > ( ) ; Collection < Label > labels = list ( ) ; for ( Label label : labels ) { if ( name == null || label . getKey ( ) . toLowerCase ( ) . indexOf ( name ) != - 1 ) ret . add ( label ) ; } return ret ; }
Returns the set of labels where the key contains the given (partial) name.
@param name The name of the labels to return. Can be a partial key. A null value returns all labels.
@return The set of labels