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

microsoft.exchange.webservices.data.ItemGroup Maven / Gradle / Ivy

Go to download

The source came from http://archive.msdn.microsoft.com/ewsjavaapi Support for Maven has been added.

The newest version!
/**************************************************************************
 * copyright file="ItemGroup.java" company="Microsoft"
 *     Copyright (c) Microsoft Corporation.  All rights reserved.
 * 
 * Defines the ItemGroup.java.
 **************************************************************************/
package microsoft.exchange.webservices.data;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * Represents a group of items as returned by grouped item search operations.
 * 
 * @param 
 *            the generic type
 */
public final class ItemGroup {

	/** The group index. */
	private String groupIndex;

	/** The items. */
	private Collection items;

	/**
	 * Initializes a new instance of the class.
	 * 
	 * @param groupIndex
	 *            the group index
	 * @param items
	 *            the items
	 */
	protected ItemGroup(String groupIndex, List items) {
		EwsUtilities.EwsAssert(groupIndex != null, "ItemGroup.ctor",
		"groupIndex is null");
		EwsUtilities
		.EwsAssert(items != null, "ItemGroup.ctor", "items is null");

		this.groupIndex = groupIndex;
		this.items = new ArrayList(items);
	}

	/**
	 * Gets an index identifying the group.
	 * 
	 * @return the group index
	 */
	public String getGroupIndex() {
		return this.groupIndex;
	}

	/**
	 * Sets an index identifying the group.	 
	 */   
	private void setGroupIndex(String value) {
		this.groupIndex = value;	
	}

	/**
	 * Gets a collection of the items in this group.
	 * 
	 * @return the items
	 */
	public Collection getItems() {
		return this.items;
	}

	/**
	 * Sets a collection of the items in this group.
	 * 
	 * @return the items
	 */	
	private void setItems(Collection value) {
		this.items = value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy