org.apache.myfaces.trinidad.bean.util

## Class PropertyTracker

- java.lang.Object
- - org.apache.myfaces.trinidad.bean.util.PropertyTracker

- All Implemented Interfaces:
    Iterable<PropertyKey>

      public class PropertyTracker
      extends Object
      implements Iterable<PropertyKey>

  Utility class for tracking indexed PropertyKeys in a bitmask

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PropertyTracker(FacesBean.Type type)` Constructor

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addProperty(PropertyKey key)` Adds a property to the bitmask
    `Iterator<PropertyKey>` | `iterator()` Provides Iterator of the propoerty being tracked in a bitmask
    `void` | `removeProperty(PropertyKey key)` Stops tracking property in a bitmask

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

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

- - ### Constructor Detail

    - #### PropertyTracker

          public PropertyTracker(FacesBean.Type type)

      Constructor
      Parameters:
        `type` - Facesbean Type for the bean that owns the tracker

  - ### Method Detail

    - #### addProperty

          public void addProperty(PropertyKey key)

      Adds a property to the bitmask
      Parameters:
        `key` - property key to be tracked in a bitmask

    - #### removeProperty

          public void removeProperty(PropertyKey key)

      Stops tracking property in a bitmask
      Parameters:
        `key` - property key that should be removed from the bitmask

    - #### iterator

          public Iterator<PropertyKey> iterator()

      Provides Iterator of the propoerty being tracked in a bitmask
      Specified by:
        `iterator` in interface `Iterable<PropertyKey>`
      Returns:
        iterator of property keys

Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.