Class IpInfo

  • All Implemented Interfaces:
    io.aether.utils.ToString

    public class IpInfo
    extends java.lang.Object
    implements io.aether.utils.ToString
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IPAddress ip  
      protected double latitude  
      protected double longitude  
      static io.aether.net.fastMeta.FastMetaType<IpInfo> META  
      static io.aether.net.fastMeta.FastMetaType<IpInfo> META_BODY  
      protected short port  
    • Constructor Summary

      Constructors 
      Constructor Description
      IpInfo​(IPAddress ip, short port, double latitude, double longitude)  
    • Field Detail

      • META_BODY

        public static final io.aether.net.fastMeta.FastMetaType<IpInfo> META_BODY
      • META

        public static final io.aether.net.fastMeta.FastMetaType<IpInfo> META
      • port

        protected final short port
      • latitude

        protected final double latitude
      • longitude

        protected final double longitude
    • Constructor Detail

      • IpInfo

        public IpInfo​(IPAddress ip,
                      short port,
                      double latitude,
                      double longitude)
    • Method Detail

      • getPort

        public short getPort()
      • getLatitude

        public double getLatitude()
      • getLongitude

        public double getLongitude()
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public io.aether.utils.AString toAString​(io.aether.utils.AString sb)
        Specified by:
        toAString in interface io.aether.utils.ToString