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