Code example for UnsignedInteger

Methods: equals

0
      //Preconditions.checkState(this.parent.isHardened());  --> maybe in bip44 
      return knownChildFactory(UnsignedInteger.valueOf(index), true);
   } 
 
   protected HdKeyPath knownChildFactory(UnsignedInteger index, boolean hardened){
      if (index.equals(UnsignedInteger.valueOf(44)) && hardened){
         return new Bip44Purpose(this, index, true);
      }else{ 
         return new HdKeyPath(this, index, hardened);
      } 
   } 
 
   public Bip44Purpose getBip44Purpose(){ 
      return new Bip44Purpose(this, UnsignedInteger.valueOf(44), true);
   } 
 
   private int getValue(){ 
      return index.intValue() | (isHardened() ? 1<<31 : 0);
   } 
 
Experience pair programming with AI  Get Codota for Java