예제 #1
0
 public boolean ReadYn(String k) {
   Object rv = ReadOr(k, false);
   if (rv == Nil) ThrowNotFound(k);
   return parse ? Yn.parse_or((String) rv, false) : Yn.coerce_(rv);
 }
예제 #2
0
 public boolean ReadYnOrY(String k) {
   Object rv = ReadOr(k, true);
   if (rv == Nil) return true;
   return parse ? Yn.parse_or((String) rv, true) : Bool_.cast(rv);
 }
예제 #3
0
 public boolean ReadBoolOr(String k, boolean or) {
   Object rv = ReadOr(k, or);
   if (rv == Nil) return or;
   return parse ? Yn.parse_or((String) rv, or) : Bool_.cast(rv);
 }
예제 #4
0
 public boolean ReadBoolOrFalse(String k) {
   Object rv = ReadOr(k, false);
   if (rv == Nil) return false;
   return parse ? Yn.parse_or((String) rv, false) : Bool_.cast(rv);
 }
예제 #5
0
 public boolean ReadBool(String k) {
   Object rv = ReadOr(k, false);
   if (rv == Nil) ThrowNotFound(k);
   return parse ? Yn.parse_or((String) rv, false) : Bool_.cast(rv);
 }