com.atlassian.jira.rest.client.api.domain
Class OperationGroup
java.lang.Object
com.atlassian.jira.rest.client.api.domain.OperationGroup
- All Implemented Interfaces:
- Operation
public class OperationGroup
- extends Object
- implements Operation
Represents operations group
- Since:
- 2.0
OperationGroup
public OperationGroup(@Nullable
String id,
Iterable<OperationLink> links,
Iterable<OperationGroup> groups,
@Nullable
OperationHeader header,
@Nullable
Integer weight)
getId
@Nullable
public String getId()
- Specified by:
getId in interface Operation
- Returns:
- Operation id. May be null.
accept
public <T> com.google.common.base.Optional<T> accept(OperationVisitor<T> visitor)
- Description copied from interface:
Operation
- Traverse through operation elements to visit them. Traversal will stop on first non absent value
returned from the visitor.
- Specified by:
accept in interface Operation
- Type Parameters:
T - Visiting result type- Parameters:
visitor - Visitor to visit operation element
- Returns:
- Value returned from the visitor.
getHeader
@Nullable
public OperationHeader getHeader()
getLinks
public Iterable<OperationLink> getLinks()
getGroups
public Iterable<OperationGroup> getGroups()
getWeight
@Nullable
public Integer getWeight()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 Atlassian. All Rights Reserved.