blob: bc9bd1c2fef5fb884afc59a5a5ba9bbb4d984813 [file] [log] [blame]
/*
* Copyright (c) 2003, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
*
* $Id: LiteralUnlimitedNaturalOperations.java,v 1.2 2004/04/10 04:09:50 khussey Exp $
*/
package org.eclipse.uml2.internal.operation;
import org.eclipse.uml2.LiteralUnlimitedNatural;
/**
* A static utility class that provides operations related to literal unlimited
* naturals.
*/
public final class LiteralUnlimitedNaturalOperations
extends UML2Operations {
/**
* Constructs a new Literal Unlimited Natural Operations. This constructor
* should never be called because this is a static utility class.
*/
private LiteralUnlimitedNaturalOperations() {
super();
}
public static boolean isComputable(
LiteralUnlimitedNatural literalUnlimitedNatural) {
return true;
}
public static int unlimitedValue(
LiteralUnlimitedNatural literalUnlimitedNatural) {
return literalUnlimitedNatural.getValue();
}
}