example.platform.power/src/example/platform/power/ExamplePlatformKernel.java
private WakeLocks findMatchingLock(WakeLock lock, Set<WakeLocks> wakeLocksSet)
    {
        for (WakeLocks setLock : wakeLocksSet)
        {
            if (setLock.getLock() == lock)
            {
                return setLock;
            }
        }
        
        return null;
    }
/**
     * Find the {@link WakeLocks} associated with a given {@link WakeLock} instance in a given {@link Set}
     * @param lock
     *      the {@link WakeLock} for which to find a match
     * @param wakeLocksSet
     *      the {@link Set} to search
     * @return
     *      the matching {@link WakeLocks} object or null if no match was found
     */
Find the  WakeLocks associated with a given  WakeLock instance in a given  Set
@param lock
the  WakeLock for which to find a match
@param wakeLocksSet
the  Set to search
@return
the matching  WakeLocks object or null if no match was found
Find the WakeLocks associated with a given WakeLock instance in a given Set @param lock the WakeLock for which to find a match @param wakeLocksSet the Set to search @return the matching WakeLocks object or null if no match was found
private WakeLocks findMatchingLock(WakeLock lock, Set<WakeLocks> wakeLocksSet)
    {
        for (WakeLocks setLock : wakeLocksSet)
        {
            if (setLock.getLock() == lock)
            {
                return setLock;
            }
        }
        return null;
    }
private WakeLocks findMatchingLock ( WakeLock lock , Set < WakeLocks > wakeLocksSet ) { for ( WakeLocks setLock : wakeLocksSet ) { if ( setLock . getLock ( ) == lock ) { return setLock ; } } return null ; }
Find the {@link WakeLocks} associated with a given {@link WakeLock} instance in a given {@link Set}
 @param lock
      the {@link WakeLock} for which to find a match
 @param wakeLocksSet
      the {@link Set} to search
 @return
      the matching {@link WakeLocks} object or null if no match was found
Find the { @link WakeLocks } associated with a given { @link WakeLock } instance in a given { @link Set } @param lock the { @link WakeLock } for which to find a match @param wakeLocksSet the { @link Set } to search @return the matching { @link WakeLocks } object or null if no match was found