public class GroupCategorySet extends Object
TextEditBasedChangeGroup
s.
Note: this class is not intended to be subclassed
Modifier and Type | Field and Description |
---|---|
static GroupCategorySet |
NONE
Constant representing a group category set containing no
group categories.
|
Constructor and Description |
---|
GroupCategorySet(GroupCategory category)
Creates a new list of group categories initialized
with the given group category.
|
GroupCategorySet(GroupCategory[] categories)
Creates a new set of group categories initialized
from the given array of group categories
|
Modifier and Type | Method and Description |
---|---|
List |
asList()
Converts the group categories into a a unmodifiable
list.
|
boolean |
contains(GroupCategory category)
Returns whether the given category is contained
in this set of group categories
|
boolean |
containsOneCategory(List categories)
Returns whether one of the given categories is contained
in this set of group categories
|
static GroupCategorySet |
union(GroupCategorySet one,
GroupCategorySet two)
Creates a new group category set containing the union of the given two
group category sets
|
public static final GroupCategorySet NONE
public GroupCategorySet(GroupCategory category)
category
- the first categorypublic GroupCategorySet(GroupCategory[] categories)
categories
- the initial group categoriespublic static GroupCategorySet union(GroupCategorySet one, GroupCategorySet two)
one
- the first set of group categoriestwo
- the second set of group categoriespublic boolean contains(GroupCategory category)
category
- the category to test containment fortrue
if the category is contained
in this set; otherwise false
public boolean containsOneCategory(List categories)
categories
- the categories to test containment fortrue
if one of the given categories is
contained in this set; otherwise false
public List asList()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.