org.umlg.java.metamodel.utilities.Stdlib Maven / Gradle / Ivy
/*
* File generated by Octopus Code Generator on Jan 17, 2007 10:04:26 AM
*/
package org.umlg.java.metamodel.utilities;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
/** Class ...
*/
public class Stdlib {
static public Set stringAsSet(String myString) {
Set result = new HashSet();
if ( myString != null ) {
result.add( myString );
}
return result;
}
static public Set intAsSet(int myInt) {
Set result = new HashSet();
result.add( new Integer(myInt) );
return result;
}
static public Set realAsSet(float myReal) {
Set result = new HashSet();
result.add( new Float(myReal) );
return result;
}
static public Set boolAsSet(boolean myBool) {
Set result = new HashSet();
result.add( new Boolean(myBool) );
return result;
}
static public Set