
**Inheritance:**
java.lang.Object
```
public class Group
```

Represents a group definition. A Group object is a member of the ResourceGroups collection or the TaskGroups collection.
## Constructors

| Constructor | Description |
| --- | --- |
| [Group()](#Group--) | Initializes a new instance of the [Group](../../com.aspose.tasks/group) class. |
## Methods

| Method | Description |
| --- | --- |
| [getGroupAssignments()](#getGroupAssignments--) | Gets a value indicating whether assignments should be grouped instead of tasks. |
| [getGroupCriteria()](#getGroupCriteria--) | Gets a GroupCriteria collection representing the fields in a group definition. |
| [getMaintainHierarchy()](#getMaintainHierarchy--) | Gets a value indicating whether to show all the levels of summary tasks for subtasks within group. |
| [getName()](#getName--) | Gets a name of a Group object. |
| [getShowInMenu()](#getShowInMenu--) | Gets a value indicating whether Project shows the group name in the Group drop-down list in the Ribbon. |
| [getShowSummary()](#getShowSummary--) | Gets a value indicating whether summary rows are displayed for the group. |
| [getUid()](#getUid--) | Gets a unique identifier of a group. |
| [setGroupAssignments(boolean value)](#setGroupAssignments-boolean-) | Sets a value indicating whether assignments should be grouped instead of tasks. |
| [setGroupCriteria(GroupCriterionCollection value)](#setGroupCriteria-com.aspose.tasks.GroupCriterionCollection-) | Sets a GroupCriteria collection representing the fields in a group definition. |
| [setMaintainHierarchy(boolean value)](#setMaintainHierarchy-boolean-) | Sets a value indicating whether to show all the levels of summary tasks for subtasks within group. |
| [setName(String value)](#setName-java.lang.String-) | Sets a name of a Group object. |
| [setShowInMenu(boolean value)](#setShowInMenu-boolean-) | Sets a value indicating whether Project shows the group name in the Group drop-down list in the Ribbon. |
| [setShowSummary(boolean value)](#setShowSummary-boolean-) | Sets a value indicating whether summary rows are displayed for the group. |
### Group() {#Group--}
```
public Group()
```


Initializes a new instance of the [Group](../../com.aspose.tasks/group) class.

### getGroupAssignments() {#getGroupAssignments--}
```
public final boolean getGroupAssignments()
```


Gets a value indicating whether assignments should be grouped instead of tasks.

**Returns:**
boolean - a value indicating whether assignments should be grouped instead of tasks.
### getGroupCriteria() {#getGroupCriteria--}
```
public final GroupCriterionCollection getGroupCriteria()
```


Gets a GroupCriteria collection representing the fields in a group definition.

**Returns:**
[GroupCriterionCollection](../../com.aspose.tasks/groupcriterioncollection) - a GroupCriteria collection representing the fields in a group definition.
### getMaintainHierarchy() {#getMaintainHierarchy--}
```
public final boolean getMaintainHierarchy()
```


Gets a value indicating whether to show all the levels of summary tasks for subtasks within group.

**Returns:**
boolean - a value indicating whether to show all the levels of summary tasks for subtasks within group.
### getName() {#getName--}
```
public final String getName()
```


Gets a name of a Group object.

**Returns:**
java.lang.String - a name of a Group object.
### getShowInMenu() {#getShowInMenu--}
```
public final boolean getShowInMenu()
```


Gets a value indicating whether Project shows the group name in the Group drop-down list in the Ribbon.

**Returns:**
boolean - a value indicating whether Project shows the group name in the Group drop-down list in the Ribbon.
### getShowSummary() {#getShowSummary--}
```
public final boolean getShowSummary()
```


Gets a value indicating whether summary rows are displayed for the group.

**Returns:**
boolean - a value indicating whether summary rows are displayed for the group.
### getUid() {#getUid--}
```
public final int getUid()
```


Gets a unique identifier of a group.

**Returns:**
int - a unique identifier of a group.
### setGroupAssignments(boolean value) {#setGroupAssignments-boolean-}
```
public final void setGroupAssignments(boolean value)
```


Sets a value indicating whether assignments should be grouped instead of tasks.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | a value indicating whether assignments should be grouped instead of tasks. |

### setGroupCriteria(GroupCriterionCollection value) {#setGroupCriteria-com.aspose.tasks.GroupCriterionCollection-}
```
public final void setGroupCriteria(GroupCriterionCollection value)
```


Sets a GroupCriteria collection representing the fields in a group definition.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [GroupCriterionCollection](../../com.aspose.tasks/groupcriterioncollection) | a GroupCriteria collection representing the fields in a group definition. |

### setMaintainHierarchy(boolean value) {#setMaintainHierarchy-boolean-}
```
public final void setMaintainHierarchy(boolean value)
```


Sets a value indicating whether to show all the levels of summary tasks for subtasks within group.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | a value indicating whether to show all the levels of summary tasks for subtasks within group. |

### setName(String value) {#setName-java.lang.String-}
```
public final void setName(String value)
```


Sets a name of a Group object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | a name of a Group object. |

### setShowInMenu(boolean value) {#setShowInMenu-boolean-}
```
public final void setShowInMenu(boolean value)
```


Sets a value indicating whether Project shows the group name in the Group drop-down list in the Ribbon.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | a value indicating whether Project shows the group name in the Group drop-down list in the Ribbon. |

### setShowSummary(boolean value) {#setShowSummary-boolean-}
```
public final void setShowSummary(boolean value)
```


Sets a value indicating whether summary rows are displayed for the group.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | a value indicating whether summary rows are displayed for the group. |

