Back to project page mha-android.
The source code is released under:
Copyright (c) 2011-2012 Cameron Porter, Ryan Brown http://github.com/camporter/mha-android Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated...
If you think the Android project mha-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.teamacra.myhomeaudio.node; /*w ww . j av a 2 s.com*/ public class Node { private int id; private String name; private String bluetoothAddress; private boolean isActive; public Node(int id, String name, String bluetoothAddress, boolean active) { this.id = id; this.name = name; this.bluetoothAddress = bluetoothAddress; this.isActive = active; } public Node(Node node) { id = node.id(); name = node.name(); bluetoothAddress = node.bluetoothAddress(); isActive = node.isActive(); } public boolean isActive() { return isActive; } public String name() { return name; } public int id() { return id; } public String bluetoothAddress() { return bluetoothAddress; } public String toString() { return name; } /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Node other = (Node) obj; if (bluetoothAddress == null) { if (other.bluetoothAddress != null) return false; } else if (!bluetoothAddress.equals(other.bluetoothAddress)) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; return true; } }