1package com.android.server.wifi.hotspot2.omadm;
2
3public class NodeAttribute {
4    private final String mName;
5    private final String mType;
6    private final String mValue;
7
8    public NodeAttribute(String name, String type, String value) {
9        mName = name;
10        mType = type;
11        mValue = value;
12    }
13
14    public String getName() {
15        return mName;
16    }
17
18    public String getValue() {
19        return mValue;
20    }
21
22    public String getType() {
23        return mType;
24    }
25
26    @Override
27    public boolean equals(Object thatObject) {
28        if (this == thatObject) {
29            return true;
30        }
31        if (thatObject == null || getClass() != thatObject.getClass()) {
32            return false;
33        }
34
35        NodeAttribute that = (NodeAttribute) thatObject;
36        return mName.equals(that.mName) && mType.equals(that.mType) && mValue.equals(that.mValue);
37    }
38
39    @Override
40    public String toString() {
41        return String.format("%s (%s) = '%s'", mName, mType, mValue);
42    }
43}
44