public class AcceptsItems extends AbstractInventoryProperty<String,Collection<ItemType>>
InputSlots in order to
 query for slots which can accept items of the specified type. It is intended
 that the semantics of the equals(java.lang.Object) will be such that the method will
 return true if the other property contains any item present in this
 property's collection.Property.Operatoroperator, value| Constructor and Description | 
|---|
| AcceptsItems(Collection<ItemType> value)Create a new AcceptsItems property with the supplied value. | 
| AcceptsItems(Collection<ItemType> value,
            Property.Operator operator)Create a new AcceptsItems property with the supplied value and operator. | 
| AcceptsItems(Object value,
            Property.Operator operator)Create a new AcceptsItems property with the supplied value and operator. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Property<?,?> other) | 
| boolean | equals(Object obj)Returns true if other is also an  AcceptsItemsproperty
 and any item appearing in the other property's collection appears
 in this property's collection. | 
| static AcceptsItems | of(Object... value)Create an AcceptsItems property which matches AcceptsItems properties
 with containing one or more of the supplied values. | 
getDefaultKey, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matchespublic AcceptsItems(Collection<ItemType> value)
value - Item types to acceptpublic AcceptsItems(Collection<ItemType> value, Property.Operator operator)
value - Item types to acceptoperator - Logical operator to apply when comparing with other
      propertiespublic AcceptsItems(Object value, Property.Operator operator)
value - Item types to acceptoperator - Logical operator to apply when comparing with other
      propertiespublic int compareTo(Property<?,?> other)
public boolean equals(Object obj)
AcceptsItems property
 and any item appearing in the other property's collection appears
 in this property's collection. In formal terms, the method returns true
 if the size of the intersection between the two item type collections is
 greater than zero.equals in class AbstractInventoryProperty<String,Collection<ItemType>>public static AcceptsItems of(Object... value)
value - ItemTypes to accept