public static void swapIndex(PinInfo[] pinInfoArray, int i, int j) {
    PinInfo pinInfo = pinInfoArray[i];
    pinInfoArray[i] = pinInfoArray[j];
    pinInfoArray[j] = pinInfo;
  }
Constructor of {@link PinInfo}.

@param index {@link AccountIndex} that owns the pin
@param isHotp represents whether the OTP type is TOTP or HOTP
java/com/google/android/apps/authenticator/otp/PinInfo.java