Exemplo n.º 1
0
 public boolean isImmutable() {
   if (this.isImmutable == null) {
     boolean isImmutable = false;
     if (orig.isImmutable()) {
       isImmutable = true;
       for (int i = 0; i < bound.sz(); ++i) {
         Object obj = bound.get(i);
         if (obj != null && !FanObj.isImmutable(obj)) {
           isImmutable = false;
           break;
         }
       }
     }
     this.isImmutable = Boolean.valueOf(isImmutable);
   }
   return this.isImmutable.booleanValue();
 }
Exemplo n.º 2
0
 public void checkInCtor(Object it) {
   if (it == inCtor) return;
   String msg = it == null ? "null" : FanObj.typeof(it).qname();
   throw ConstErr.make(msg);
 }