
microsoft.exchange.webservices.data.ItemGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of exchange-ws-api Show documentation
Show all versions of exchange-ws-api Show documentation
The source came from http://archive.msdn.microsoft.com/ewsjavaapi
Support for Maven has been added.
/**************************************************************************
* 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 - 2025 Weber Informatics LLC | Privacy Policy