org.fourthline.cling.model.meta.Device.equals()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中org.fourthline.cling.model.meta.Device.equals()方法的一些代码示例,展示了Device.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Device.equals()方法的具体详情如下:
包路径:org.fourthline.cling.model.meta.Device
类名称:Device
方法名:equals

Device.equals介绍

暂无

代码示例

代码示例来源:origin: 4thline/cling

  1. @Override
  2. public boolean equals(Object o) {
  3. if (this == o) return true;
  4. if (o == null || getClass() != o.getClass()) return false;
  5. DeviceDisplay that = (DeviceDisplay) o;
  6. return device.equals(that.device);
  7. }

代码示例来源:origin: 4thline/cling

  1. @Override
  2. public boolean switchDeviceView(Device device) {
  3. for (DeviceView deviceView : tabs.keySet()) {
  4. if (deviceView.getDevice().equals(device)) {
  5. Component comp = tabs.get(deviceView);
  6. tabbedPane.setSelectedIndex(tabbedPane.indexOfComponent(comp));
  7. return true;
  8. }
  9. }
  10. return false;
  11. }
  12. }

代码示例来源:origin: hubing8658/UPnP-DLNA-Demo

  1. @Override
  2. public boolean equals(Object o) {
  3. if (this == o) {
  4. return true;
  5. }
  6. if (o == null || getClass() != o.getClass()) {
  7. return false;
  8. }
  9. DeviceDisplay that = (DeviceDisplay) o;
  10. return device.equals(that.device);
  11. }

相关文章