Exemplo n.º 1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((type == null) ? 0 : type.hashCode());
   return result;
 }
Exemplo n.º 2
0
 @Override
 public String getName() {
   return type.toString();
 }
Exemplo n.º 3
0
 public static PrimitiveType valueOf(String typeName) {
   return new PrimitiveType(EnumType.valueOf(typeName));
 }
Exemplo n.º 4
0
 @Override
 public String toString() {
   return type.toString();
 }