All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jxls.common.GroupData Maven / Gradle / Ivy

The newest version!
package org.jxls.common;

import java.util.Collection;

/**
 * Used in collection grouping to hold group data
 * @author Leonid Vysochyn
 */
public class GroupData {
    private Object item;
    private Collection items;

    public GroupData(Object groupItem, Collection groupItems) {
        this.item = groupItem;
        this.items = groupItems;
    }

    public Object getItem() {
        return item;
    }

    public void setItem(Object item) {
        this.item = item;
    }

    public Collection getItems() {
        return items;
    }

    public void setItems(Collection items) {
        this.items = items;
    }
    
    @Override
    public String toString() {
        return "GroupData: " + (item == null ? "null" : item.toString());
    }
}