Code example for Collection

Methods: size, toArray

0
    public Field(String name, FieldType type) {
        this(name, type, (Field[]) null);
    } 
 
    public Field(String name, FieldType type, Collection<Field> properties) {
        this(name, type, (properties != null ? properties.toArray(new Field[properties.size()]) : null));
    } 
 
    Field(String name, FieldType type, Field[] properties) {
        this.name = name;
        this.type = type;
        this.properties = properties;
    } 
 
    public Field[] properties() { return properties; }
 
    public FieldType type() { 
        return type;
    } 
 
    public String name() { return name; }