Changeset 156 for trunk/src/org/expeditee/items/ItemUtils.java
- Timestamp:
- 07/25/08 09:24:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/ItemUtils.java
r154 r156 91 91 * @return True if an Item was found that is the given Tag, False otherwise. 92 92 */ 93 public static boolean ContainsTag( List<Item> items, int tag) {93 public static boolean ContainsTag(Collection<Item> items, int tag) { 94 94 return ContainsTag(items, GetTag(tag)); 95 95 } 96 96 97 public static boolean ContainsTag( List<Item> items, String tag) {97 public static boolean ContainsTag(Collection<Item> items, String tag) { 98 98 return (FindTag(items, tag) != null); 99 99 } 100 100 101 public static boolean ContainsExactTag( List<Item> items, int tag) {101 public static boolean ContainsExactTag(Collection<Item> items, int tag) { 102 102 return ContainsExactTag(items, GetTag(tag)); 103 103 } 104 104 105 public static boolean ContainsExactTag( List<Item> items, String tag) {105 public static boolean ContainsExactTag(Collection<Item> items, String tag) { 106 106 return (FindExactTag(items, tag) != null); 107 107 } … … 133 133 * is found 134 134 */ 135 public static Text FindTag( List<Item> items, String toFind) {135 public static Text FindTag(Collection<Item> items, String toFind) { 136 136 for (Item i : items) { 137 137 if (i instanceof Text && i.isAnnotation()) … … 142 142 } 143 143 144 public static Item FindExactTag( List<Item> items, String toFind) {144 public static Item FindExactTag(Collection<Item> items, String toFind) { 145 145 for (Item i : items) { 146 146 if (i instanceof Text && i.isAnnotation())
Note:
See TracChangeset
for help on using the changeset viewer.