T
- @ProviderType public abstract class RouteConfigIP<T extends IPAddress> extends java.lang.Object implements RouteConfig
Constructor and Description |
---|
RouteConfigIP(T destination,
T gateway,
T netmask,
java.lang.String interfaceName,
int metric) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
Gets the description of the route
|
T |
getDestination()
Gets the destination of the route
|
T |
getGateway()
Gets the gateway of the route
|
java.lang.String |
getInterfaceName()
Gets the interface name associated with the route
|
int |
getMetric()
Gets the metric of the route
|
T |
getNetmask()
Gets the network mask of the route
|
int |
hashCode() |
boolean |
isValid()
Checks whether or not this configuration is valid.
|
void |
setDestination(T destination) |
void |
setGateway(T gateway) |
void |
setInterfaceName(java.lang.String interfaceName) |
void |
setMetric(int metric) |
void |
setNetmask(T netmask) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals
public java.lang.String getDescription()
RouteConfig
getDescription
in interface RouteConfig
public T getDestination()
RouteConfig
getDestination
in interface RouteConfig
public void setDestination(T destination)
public T getGateway()
RouteConfig
getGateway
in interface RouteConfig
public void setGateway(T gateway)
public T getNetmask()
RouteConfig
getNetmask
in interface RouteConfig
public void setNetmask(T netmask)
public java.lang.String getInterfaceName()
RouteConfig
getInterfaceName
in interface RouteConfig
public void setInterfaceName(java.lang.String interfaceName)
public int getMetric()
RouteConfig
getMetric
in interface RouteConfig
public void setMetric(int metric)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isValid()
NetConfig
public java.lang.String toString()
toString
in class java.lang.Object