1 package org.sapia.util.xml.idefix.test; 2 3 14 public class BasicTypes { 15 16 public BasicTypes() { 17 } 18 19 public byte getPositiveByte() { 20 return Byte.MAX_VALUE; 21 } 22 public byte getNegativeByte() { 23 return Byte.MIN_VALUE; 24 } 25 public Byte getByteObject() { 26 return new Byte ((byte) 95); 27 } 28 29 public short getPositiveShort() { 30 return Short.MAX_VALUE; 31 } 32 public short getNegativeShort() { 33 return Short.MIN_VALUE; 34 } 35 public Short getShortObject() { 36 return new Short ((short) 1095); 37 } 38 39 public int getPositiveInt() { 40 return Integer.MAX_VALUE; 41 } 42 public int getNegativeInt() { 43 return Integer.MIN_VALUE; 44 } 45 public Integer getIntegerObject() { 46 return new Integer (188295); 47 } 48 49 public long getPostitiveLong() { 50 return Long.MAX_VALUE; 51 } 52 public long getNegativeLong() { 53 return Long.MIN_VALUE; 54 } 55 public Long getLongObject() { 56 return new Long (100000000095L); 57 } 58 59 public float getPositiveFloat() { 60 return Float.MAX_VALUE; 61 } 62 public float getNegativeFloat() { 63 return Float.MIN_VALUE; 64 } 65 public Float getFloatObject() { 66 return new Float (1243.95f); 67 } 68 69 public double getPositiveDouble() { 70 return Double.MAX_VALUE; 71 } 72 public double getNegativeDouble() { 73 return Double.MIN_VALUE; 74 } 75 public Double getDoubleObject() { 76 return new Double (10000000000243.95); 77 } 78 79 public boolean getBoolean() { 80 return true; 81 } 82 public Boolean getBooleanObject() { 83 return new Boolean (false); 84 } 85 86 public String getString() { 87 return "foo-bar"; 88 } 89 public char getChar() { 90 return 'Z'; 91 } 92 } 93 | Popular Tags |