Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.kuali.rice.kew.workgroup;

A GroupId which is a unique numerical identifier for a Workgroup.

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
See also:
Workgroup
public final class WorkflowGroupId implements GroupId {
	private static final long serialVersionUID = -2452096307070075024L;
	private Long groupId;
    public WorkflowGroupId(Long groupId) {
        this. = groupId;
    }
    public Long getGroupId() {
        return ;
    }

    
Returns true if this userId has an empty value. Empty userIds can't be used as keys in a Hash, among other things.

Returns:
true if this instance doesn't have a value
    public boolean isEmpty() {
        return  == null;
    }

    
If you make this class non-final, you must rewrite equals to work for subclasses.
    public boolean equals(Object obj) {
        boolean isEqual = false;
        if (obj != null && (obj instanceof WorkflowGroupId)) {
            WorkflowGroupId w = (WorkflowGroupIdobj;
            if (w.getGroupId() != null && getGroupId() != null) {
                return w.getGroupId().equals(getGroupId());
            } else {
                return false;
            }
        }
        return isEqual;
    }
    public int hashCode() {
        if ( == null) {
            return 0;
        }
        return .hashCode();
    }
    public String toString() {
        if ( != null) {
            return .toString();
        }
        return "null";
    }
New to GrepCode? Check out our FAQ X