protocoladdressinfo.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 41 行

JAVA
41
字号
/*
 * $Id: ProtocolAddressInfo.java,v 1.2 2004/02/15 11:08:05 epr Exp $
 */
package org.jnode.net;

import java.net.InetAddress;
import java.util.Set;

/**
 * Each network device can be configured to hold address information for a
 * specific protocol. Objects that hold this information, must implement this
 * interface.
 * 
 * @author epr
 */
public interface ProtocolAddressInfo {

	/**
	 * Is the given address one of the addresses of this object?
	 * @param address
	 */
	public boolean contains(ProtocolAddress address);
	
	/**
	 * Is the given address one of the addresses of this object?
	 * @param address
	 */
	public boolean contains(InetAddress address);
	
	/**
	 * Gets the default protocol address
	 */
	public ProtocolAddress getDefaultAddress();

	/**
	 * Gets a collection of all protocol addresses of this interface.
	 * @return A Set of ProtocolAddress instances
	 */
	public Set addresses();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?