com.hazelcast.core

## Class ItemEvent<E>

- java.lang.Object
- - java.util.EventObject
  - - com.hazelcast.core.ItemEvent<E>

- Type Parameters:
    `E` - type of the item
  All Implemented Interfaces:
    Serializable

      public class ItemEvent<E>
      extends EventObject

  Event for a collection item.
  See Also:
    `EntryEvent`, `ICollection.addItemListener(ItemListener, boolean)`, Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected E` | `item`

    - ### Fields inherited from class java.util.EventObject

      `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ItemEvent(String name, ItemEventType itemEventType, E item, Member member)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ItemEventType` | `getEventType()` Returns the event type.
    `E` | `getItem()` Returns the item related to the event.
    `Member` | `getMember()` Returns the member that fired this event.
    `String` | `toString()`

    - ### Methods inherited from class java.util.EventObject

      `getSource`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### item

          protected E item

  - ### Constructor Detail

    - #### ItemEvent

          public ItemEvent(String name,
                           ItemEventType itemEventType,
                           E item,
                           Member member)

  - ### Method Detail

    - #### getEventType

          public ItemEventType getEventType()

      Returns the event type.
      Returns:
        the event type

    - #### getItem

          public E getItem()

      Returns the item related to the event.
      Returns:
        the item related to the event

    - #### getMember

          public Member getMember()

      Returns the member that fired this event.
      Returns:
        the member that fired this event

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `EventObject`

Copyright © 2019. All rights reserved.