1 21 23 24 43 package oracle.toplink.essentials.internal.helper; 44 45 46 63 public class Answer { 64 int answer; 65 66 public Answer() { 67 answer = FalseUndefinedTrue.Undefined; 68 } 69 70 public void setFalse() { 71 answer = FalseUndefinedTrue.False; 72 } 73 74 public void setTrue() { 75 answer = FalseUndefinedTrue.True; 76 } 77 78 public void setUndefined() { 79 answer = FalseUndefinedTrue.Undefined; 80 } 81 82 public boolean isFalse() { 83 return (answer == FalseUndefinedTrue.False); 84 } 85 86 public boolean isTrue() { 87 return (answer == FalseUndefinedTrue.True); 88 } 89 90 public boolean isUndefined() { 91 return (answer == FalseUndefinedTrue.Undefined); 92 } 93 94 public int getAnswer() { 95 return answer; 96 } 97 } 98 | Popular Tags |