Class CompositeKeyNodeAndWeight

  • All Implemented Interfaces:

    
    public final class CompositeKeyNodeAndWeight
    
                        

    A simple data class for passing keys and weights into CompositeKeyGenerator.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final PublicKey node
      public final int weight
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • CompositeKeyNodeAndWeight

        CompositeKeyNodeAndWeight(PublicKey node, int weight)
        Creates a new CompositeKeyNodeAndWeight for the specified key and weight for the key.
        Parameters:
        node - A public key.
        weight - The weight for that key, must be greater than zero.
      • CompositeKeyNodeAndWeight

        CompositeKeyNodeAndWeight(PublicKey node)
        Creates a new CompositeKeyNodeAndWeight for the specified key, defaulting the key's weight to 1.
        Parameters:
        node - A public key.