All Packages Class Hierarchy This Package Previous Next Index
Class benno.submerge.Network
java.lang.Object
|
+----benno.submerge.Network
- public class Network
- extends Object
- implements Serializable
This class represents an IP network. It contains the 32 bits of the
network address and also a subnet mask.
-
Network(int, int, int, int, int, String)
-
-
Network(Network)
-
-
equals(Network)
-
-
equals(Object)
-
-
intersects(Network)
- Checks for intersection of networks.
-
networkString()
- returns the network part in a.b.c.d form
-
numAddrs()
- Returns the number of addresses in the network, including
broadcast and network addresses
-
toString()
-
Network
public Network(int a,
int b,
int c,
int d,
int m,
String ann)
Network
public Network(Network n)
toString
public String toString()
- Overrides:
- toString in class Object
networkString
public String networkString()
- returns the network part in a.b.c.d form
numAddrs
public int numAddrs()
- Returns the number of addresses in the network, including
broadcast and network addresses
intersects
public boolean intersects(Network n)
- Checks for intersection of networks.
It returns true if the networks overlap in the IP address space.
equals
public boolean equals(Object o)
- Overrides:
- equals in class Object
equals
public boolean equals(Network n)
All Packages Class Hierarchy This Package Previous Next Index