Package org.eclipse.handly.util

## Class SerialPerObjectRule

- java.lang.Object
- - org.eclipse.handly.util.SerialPerObjectRule

- All Implemented Interfaces:
    `org.eclipse.core.runtime.jobs.ISchedulingRule`

      public final class SerialPerObjectRule
      extends java.lang.Object
      implements org.eclipse.core.runtime.jobs.ISchedulingRule

  A scheduling rule that does not allow nesting and conflicts only with a `SerialPerObjectRule` pertaining to the same (i.e., equal) lock object.
  Since:
    1.1

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SerialPerObjectRule​(java.lang.Object lock)` | Creates a new `SerialPerObjectRule` for the given lock object.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `contains​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)` |
    `boolean` | `isConflicting​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)` |

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

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

- - ### Constructor Detail

    - #### SerialPerObjectRule

          public SerialPerObjectRule​(java.lang.Object lock)

      Creates a new `SerialPerObjectRule` for the given lock object.
      Parameters:
        `lock` - a lock object (not `null`)

  - ### Method Detail

    - #### contains

          public boolean contains​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)

      Specified by:
        `contains` in interface `org.eclipse.core.runtime.jobs.ISchedulingRule`

    - #### isConflicting

          public boolean isConflicting​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)

      Specified by:
        `isConflicting` in interface `org.eclipse.core.runtime.jobs.ISchedulingRule`