public class Service extends Object
/etc/services
.Modifier | Constructor and Description |
---|---|
protected |
Service(String serviceName,
int port,
Collection<String> aliases)
Creates a new
Service with the specified service name, port, and
aliases. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Collection<String> |
getAliases()
Returns the aliases.
|
String |
getName()
Returns the name.
|
int |
getPort()
Returns the port.
|
int |
hashCode() |
String |
toString() |
protected Service(String serviceName, int port, Collection<String> aliases)
Service
with the specified service name, port, and
aliases.serviceName
- The service name.port
- The port.aliases
- The aliases.public String getName()
public int getPort()
public Collection<String> getAliases()
Copyright © 2020 LibJ. All rights reserved.