Class Address


  • public class Address
    extends java.lang.Object
    Used internally within the JCSP network infrastructure to represent a single address.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String protocolID  
      private Specs specs  
      private boolean unique  
      private java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Address​(java.lang.String protocolID, java.lang.String value, boolean unique)  
    • Field Detail

      • protocolID

        private java.lang.String protocolID
      • value

        private java.lang.String value
      • unique

        private boolean unique
      • specs

        private Specs specs
    • Constructor Detail

      • Address

        public Address​(java.lang.String protocolID,
                       java.lang.String value,
                       boolean unique)
    • Method Detail

      • getProtocolID

        public java.lang.String getProtocolID()
      • getValue

        public java.lang.String getValue()
      • addSpec

        public void addSpec​(Spec spec)
      • removeSpec

        public void removeSpec​(Spec spec)
      • getSpecs

        public Spec[] getSpecs()
      • isUnique

        public boolean isUnique()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object