@Test void equalsReturnsFalseWhenInitiatedExitIsDifferent() { Validator testValidator = Validator.create( pubkey, withdrawalCredentials, effectiveBalance, !slashed, activationEligibilityEpoch, activationEpoch, exitEpoch, withdrawalEpoch); assertNotEquals(validator, testValidator); }
public static Validator create( BLSPublicKey pubkey, Bytes32 withdrawal_credentials, UInt64 effective_balance, boolean slashed, UInt64 activation_eligibility_epoch, UInt64 activation_epoch, UInt64 exit_epoch, UInt64 withdrawable_epoch) { return new Validator( pubkey, withdrawal_credentials, effective_balance, slashed, activation_eligibility_epoch, activation_epoch, exit_epoch, withdrawable_epoch); }
Validator extends AbstractImmutableContainer implements ContainerViewRead, SimpleOffsetSerializable, Merkleizable, SSZContainer { public static Validator create( BLSPublicKey pubkey, Bytes32 withdrawal_credentials, UInt64 effective_balance, boolean slashed, UInt64 activation_eligibility_epoch, UInt64 activation_epoch, UInt64 exit_epoch, UInt64 withdrawable_epoch) { return new Validator( pubkey, withdrawal_credentials, effective_balance, slashed, activation_eligibility_epoch, activation_epoch, exit_epoch, withdrawable_epoch); } }
Validator extends AbstractImmutableContainer implements ContainerViewRead, SimpleOffsetSerializable, Merkleizable, SSZContainer { public static Validator create( BLSPublicKey pubkey, Bytes32 withdrawal_credentials, UInt64 effective_balance, boolean slashed, UInt64 activation_eligibility_epoch, UInt64 activation_epoch, UInt64 exit_epoch, UInt64 withdrawable_epoch) { return new Validator( pubkey, withdrawal_credentials, effective_balance, slashed, activation_eligibility_epoch, activation_epoch, exit_epoch, withdrawable_epoch); } private  Validator(ContainerViewType<Validator> type, TreeNode backingNode);  Validator(
      BLSPublicKey pubkey,
      Bytes32 withdrawal_credentials,
      UInt64 effective_balance,
      boolean slashed,
      UInt64 activation_eligibility_epoch,
      UInt64 activation_epoch,
      UInt64 exit_epoch,
      UInt64 withdrawable_epoch);  Validator(Validator validator);  Validator(); }
Validator extends AbstractImmutableContainer implements ContainerViewRead, SimpleOffsetSerializable, Merkleizable, SSZContainer { public static Validator create( BLSPublicKey pubkey, Bytes32 withdrawal_credentials, UInt64 effective_balance, boolean slashed, UInt64 activation_eligibility_epoch, UInt64 activation_epoch, UInt64 exit_epoch, UInt64 withdrawable_epoch) { return new Validator( pubkey, withdrawal_credentials, effective_balance, slashed, activation_eligibility_epoch, activation_epoch, exit_epoch, withdrawable_epoch); } private  Validator(ContainerViewType<Validator> type, TreeNode backingNode);  Validator(
      BLSPublicKey pubkey,
      Bytes32 withdrawal_credentials,
      UInt64 effective_balance,
      boolean slashed,
      UInt64 activation_eligibility_epoch,
      UInt64 activation_epoch,
      UInt64 exit_epoch,
      UInt64 withdrawable_epoch);  Validator(Validator validator);  Validator(); @Override int getSSZFieldCount(); @Override List<Bytes> get_fixed_parts(); @Override String toString(); static Validator create(
      BLSPublicKey pubkey,
      Bytes32 withdrawal_credentials,
      UInt64 effective_balance,
      boolean slashed,
      UInt64 activation_eligibility_epoch,
      UInt64 activation_epoch,
      UInt64 exit_epoch,
      UInt64 withdrawable_epoch); BLSPublicKey getPubkey(); Bytes32 getWithdrawal_credentials(); UInt64 getEffective_balance(); boolean isSlashed(); UInt64 getActivation_eligibility_epoch(); UInt64 getActivation_epoch(); UInt64 getExit_epoch(); UInt64 getWithdrawable_epoch(); Validator withEffective_balance(UInt64 effective_balance); Validator withSlashed(boolean slashed); Validator withActivation_eligibility_epoch(UInt64 activation_eligibility_epoch); Validator withActivation_epoch(UInt64 activation_epoch); Validator withExit_epoch(UInt64 exit_epoch); Validator withWithdrawable_epoch(UInt64 withdrawable_epoch); @Override Bytes32 hash_tree_root(); }
Validator extends AbstractImmutableContainer implements ContainerViewRead, SimpleOffsetSerializable, Merkleizable, SSZContainer { public static Validator create( BLSPublicKey pubkey, Bytes32 withdrawal_credentials, UInt64 effective_balance, boolean slashed, UInt64 activation_eligibility_epoch, UInt64 activation_epoch, UInt64 exit_epoch, UInt64 withdrawable_epoch) { return new Validator( pubkey, withdrawal_credentials, effective_balance, slashed, activation_eligibility_epoch, activation_epoch, exit_epoch, withdrawable_epoch); } private  Validator(ContainerViewType<Validator> type, TreeNode backingNode);  Validator(
      BLSPublicKey pubkey,
      Bytes32 withdrawal_credentials,
      UInt64 effective_balance,
      boolean slashed,
      UInt64 activation_eligibility_epoch,
      UInt64 activation_epoch,
      UInt64 exit_epoch,
      UInt64 withdrawable_epoch);  Validator(Validator validator);  Validator(); @Override int getSSZFieldCount(); @Override List<Bytes> get_fixed_parts(); @Override String toString(); static Validator create(
      BLSPublicKey pubkey,
      Bytes32 withdrawal_credentials,
      UInt64 effective_balance,
      boolean slashed,
      UInt64 activation_eligibility_epoch,
      UInt64 activation_epoch,
      UInt64 exit_epoch,
      UInt64 withdrawable_epoch); BLSPublicKey getPubkey(); Bytes32 getWithdrawal_credentials(); UInt64 getEffective_balance(); boolean isSlashed(); UInt64 getActivation_eligibility_epoch(); UInt64 getActivation_epoch(); UInt64 getExit_epoch(); UInt64 getWithdrawable_epoch(); Validator withEffective_balance(UInt64 effective_balance); Validator withSlashed(boolean slashed); Validator withActivation_eligibility_epoch(UInt64 activation_eligibility_epoch); Validator withActivation_epoch(UInt64 activation_epoch); Validator withExit_epoch(UInt64 exit_epoch); Validator withWithdrawable_epoch(UInt64 withdrawable_epoch); @Override Bytes32 hash_tree_root(); static final int SSZ_FIELD_COUNT; static final ContainerViewType<Validator> TYPE; }