|
45 | 45 | * in {@link NfcAdapter#ACTION_TAG_DISCOVERED} intents. A {@link Tag} object is immutable |
46 | 46 | * and represents the state of the tag at the time of discovery. It can be |
47 | 47 | * directly queried for its UID and Type, or used to create a {@link TagTechnology} |
48 | | - * (with {@link Tag#getTechnology}). |
| 48 | + * (with {@link NfcAdapter#getTechnology}). |
49 | 49 | * <p> |
50 | 50 | * A {@link Tag} can be used to create a {@link TagTechnology} only while the tag is in |
51 | 51 | * range. If it is removed and then returned to range, then the most recent |
@@ -84,7 +84,7 @@ public Tag(byte[] id, int[] techList, Bundle[] techListExtras, int serviceHandle |
84 | 84 | /** |
85 | 85 | * Construct a mock Tag. |
86 | 86 | * <p>This is an application constructed tag, so NfcAdapter methods on this |
87 | | - * Tag such as {@link #getTechnology} may fail with |
| 87 | + * Tag such as {@link NfcAdapter#getTechnology} may fail with |
88 | 88 | * {@link IllegalArgumentException} since it does not represent a physical Tag. |
89 | 89 | * <p>This constructor might be useful for mock testing. |
90 | 90 | * @param id The tag identifier, can be null |
@@ -127,10 +127,7 @@ public int[] getTechnologyList() { |
127 | 127 | return Arrays.copyOf(mTechList, mTechList.length); |
128 | 128 | } |
129 | 129 |
|
130 | | - /** |
131 | | - * Returns the technology, or null if not present |
132 | | - */ |
133 | | - public TagTechnology getTechnology(NfcAdapter adapter, int tech) { |
| 130 | + /*package*/ TagTechnology getTechnology(NfcAdapter adapter, int tech) { |
134 | 131 | int pos = -1; |
135 | 132 | for (int idx = 0; idx < mTechList.length; idx++) { |
136 | 133 | if (mTechList[idx] == tech) { |
|
0 commit comments