Ignore:
Timestamp:
07/25/08 09:24:45 (16 years ago)
Author:
ra33
Message:

Added calculate action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/ItemUtils.java

    r154 r156  
    9191         * @return True if an Item was found that is the given Tag, False otherwise.
    9292         */
    93         public static boolean ContainsTag(List<Item> items, int tag) {
     93        public static boolean ContainsTag(Collection<Item> items, int tag) {
    9494                return ContainsTag(items, GetTag(tag));
    9595        }
    9696
    97         public static boolean ContainsTag(List<Item> items, String tag) {
     97        public static boolean ContainsTag(Collection<Item> items, String tag) {
    9898                return (FindTag(items, tag) != null);
    9999        }
    100100
    101         public static boolean ContainsExactTag(List<Item> items, int tag) {
     101        public static boolean ContainsExactTag(Collection<Item> items, int tag) {
    102102                return ContainsExactTag(items, GetTag(tag));
    103103        }
    104104
    105         public static boolean ContainsExactTag(List<Item> items, String tag) {
     105        public static boolean ContainsExactTag(Collection<Item> items, String tag) {
    106106                return (FindExactTag(items, tag) != null);
    107107        }
     
    133133         *         is found
    134134         */
    135         public static Text FindTag(List<Item> items, String toFind) {
     135        public static Text FindTag(Collection<Item> items, String toFind) {
    136136                for (Item i : items) {
    137137                        if (i instanceof Text && i.isAnnotation())
     
    142142        }
    143143
    144         public static Item FindExactTag(List<Item> items, String toFind) {
     144        public static Item FindExactTag(Collection<Item> items, String toFind) {
    145145                for (Item i : items) {
    146146                        if (i instanceof Text && i.isAnnotation())
Note: See TracChangeset for help on using the changeset viewer.