Class PortDescriptor
- java.lang.Object
-
- org.marketcetera.util.ws.stateful.PortDescriptor
-
- All Implemented Interfaces:
Comparable<PortDescriptor>
public class PortDescriptor extends Object implements Comparable<PortDescriptor>
Describes the usage of a port.- Since:
- $Release$
- Version:
- $Id: PortDescriptor.java 17872 2019-08-07 18:46:33Z colin $
- Author:
- Colin DuPlantis
-
-
Field Summary
Fields Modifier and Type Field Description private Stringdescriptiondescription valueprivate intportport value
-
Constructor Summary
Constructors Constructor Description PortDescriptor(int inPort, String inDescription)Create a new PortDescriptor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PortDescriptor inO)booleanequals(Object obj)StringgetDescription()Get the description value.intgetPort()Get the port value.inthashCode()StringtoString()
-
-
-
Field Detail
-
port
private final int port
port value
-
description
private final String description
description value
-
-
Constructor Detail
-
PortDescriptor
public PortDescriptor(int inPort, String inDescription)Create a new PortDescriptor instance.- Parameters:
inPort- anintvalueinDescription- aStringvalue
-
-
Method Detail
-
getPort
public int getPort()
Get the port value.- Returns:
- an
intvalue
-
getDescription
public String getDescription()
Get the description value.- Returns:
- a
Stringvalue
-
compareTo
public int compareTo(PortDescriptor inO)
- Specified by:
compareToin interfaceComparable<PortDescriptor>
-
-