📄 discoveryinformation.java
字号:
/*
**************************************************************************
** $Header: /cvsroot/jred/jred/src/com/synchrona/jred/irlap/DiscoveryInformation.java,v 1.1.1.1 2000/07/05 04:41:52 mpatters Exp $
**
** Copyright (C) 2000 Synchrona, Inc. All rights reserved.
**
** This file is part of JRed, a 100% Java implementation of the IrDA
** infrared communications protocols.
**
** This file may be distributed under the terms of the Synchrona Public
** License as defined by Synchrona, Inc. and appearing in the file
** LICENSE included in the packaging of this file. The Synchrona Public
** License is based on the Q Public License as defined by Troll Tech AS
** of Norway; it differs only in its use of the courts of Florida, USA
** rather than those of Oslo, Norway.
**************************************************************************
*/
package com.synchrona.jred.irlap;
import com.synchrona.util.Assert;
public class DiscoveryInformation {
private int m_nAddress;
private ServiceHints m_serviceHints;
/**
* Instances of DiscoveryInformation are passed up from the
* IrLAP layer to infrared services like IrOBEX when a remote
* peer is discovered.
*
* @param nRemoteAddress remote device's address
* @param remoteHints description of remote device's capabilities
*/
public DiscoveryInformation(int nRemoteAddress, ServiceHints remoteHints) {
Assert.warn(remoteHints != null, "Remote service hints were null.");
m_nAddress = nRemoteAddress;
m_serviceHints = remoteHints;
}
public int getAddress() {
return m_nAddress;
}
public ServiceHints getServiceHints() {
return m_serviceHints;
}
public String toString() {
return "DiscoveryInformation [" + m_nAddress + " " + m_serviceHints + "]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -