Package com.github.ambry.network
Class Port
- java.lang.Object
-
- com.github.ambry.network.Port
-
public class Port extends java.lang.Object
Represents a port containing port number andPortType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getPort()
PortType
getPortType()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Port
public Port(int port, PortType type)
-
-
Method Detail
-
getPort
public int getPort()
-
getPortType
public PortType getPortType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-