Lines Matching defs:NetworkInterface

47 public final class NetworkInterface {
53 private NetworkInterface childs[];
54 private NetworkInterface parent = null;
56 private static final NetworkInterface defaultInterface;
78 * Returns an NetworkInterface object with index set to 0 and name to null.
83 NetworkInterface() {
86 NetworkInterface(String name, int index, InetAddress[] addrs) {
203 public Enumeration<NetworkInterface> getSubInterfaces() {
215 public Stream<NetworkInterface> subInterfaces() {
220 * Returns the parent NetworkInterface of this interface if this is
224 * @return The {@code NetworkInterface} this interface is attached to.
227 public NetworkInterface getParent() {
265 * @return A {@code NetworkInterface} with the specified name,
275 public static NetworkInterface getByName(String name) throws SocketException {
285 * @return the NetworkInterface obtained from its index, or {@code null} if
292 public static NetworkInterface getByIndex(int index) throws SocketException {
310 * @return A {@code NetworkInterface}
320 public static NetworkInterface getByInetAddress(InetAddress addr) throws SocketException {
345 public static Enumeration<NetworkInterface> getNetworkInterfaces()
347 NetworkInterface[] netifs = getAll();
365 * Stream<InetAddress> addrs = NetworkInterface.networkInterfaces()
366 * .flatMap(NetworkInterface::inetAddresses);
375 public static Stream<NetworkInterface> networkInterfaces()
377 NetworkInterface[] netifs = getAll();
413 private static native NetworkInterface[] getAll()
416 private static native NetworkInterface getByName0(String name)
419 private static native NetworkInterface getByIndex0(int index)
422 private static native NetworkInterface getByInetAddress0(InetAddress addr)
548 * not {@code null} and it represents the same NetworkInterface
551 * Two instances of {@code NetworkInterface} represent the same
552 * NetworkInterface if both name and addrs are the same for both.
560 if (!(obj instanceof NetworkInterface)) {
563 NetworkInterface that = (NetworkInterface)obj;
624 static NetworkInterface getDefault() {