|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ltk.core.refactoring.GroupCategorySet
public class GroupCategorySet
A special set to manage group categories. Group category sets are value
objects and are therefore best used as static final fields to share a
group category set between n TextEditBasedChangeGroups.
Note: this class is not intended to be subclassed
| Field Summary | |
|---|---|
static GroupCategorySet |
NONE
Constant representing a group category set containing no group categories. |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
java.util.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(java.util.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GroupCategorySet NONE
| Constructor Detail |
|---|
public GroupCategorySet(GroupCategory category)
category - the first categorypublic GroupCategorySet(GroupCategory[] categories)
categories - the initial group categories| Method Detail |
|---|
public static GroupCategorySet union(GroupCategorySet one,
GroupCategorySet two)
one - the first set of group categoriestwo - the second set of group categories
public boolean contains(GroupCategory category)
category - the category to test containment for
true if the category is contained
in this set; otherwise falsepublic boolean containsOneCategory(java.util.List categories)
categories - the categories to test containment for
true if one of the given categories is
contained in this set; otherwise falsepublic java.util.List asList()
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.