Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ltk.core.refactoring
Class GroupCategorySet

java.lang.Object
  extended by 
org.eclipse.ltk.core.refactoring.GroupCategorySet

public class GroupCategorySet
extends Object

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

Since:
3.2
Restriction:
This class is not intended to be subclassed by clients.

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
  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
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final 
GroupCategorySet NONE
Constant representing a group category set containing no group categories.

Constructor Detail

GroupCategorySet

public GroupCategorySet(
GroupCategory category)
Creates a new list of group categories initialized with the given group category.

Parameters:
category - the first category

GroupCategorySet

public GroupCategorySet(
GroupCategory[] categories)
Creates a new set of group categories initialized from the given array of group categories

Parameters:
categories - the initial group categories
Method Detail

union

public static 
GroupCategorySet union(
GroupCategorySet one,
                                     
GroupCategorySet two)
Creates a new group category set containing the union of the given two group category sets

Parameters:
one - the first set of group categories
two - the second set of group categories
Returns:
the union

contains

public boolean contains(
GroupCategory category)
Returns whether the given category is contained in this set of group categories

Parameters:
category - the category to test containment for
Returns:
true if the category is contained in this set; otherwise false

containsOneCategory

public boolean containsOneCategory(
List categories)
Returns whether one of the given categories is contained in this set of group categories

Parameters:
categories - the categories to test containment for
Returns:
true if one of the given categories is contained in this set; otherwise false

asList

public 
List asList()
Converts the group categories into a a unmodifiable list.

Returns:
an unmodifiable list containing all group categories

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire