Package com.enonic.xp.security

## Class PrincipalRelationships

- java.lang.Object
- - com.enonic.xp.support.AbstractImmutableEntityList<PrincipalRelationship>
  - - com.enonic.xp.security.PrincipalRelationships

- All Implemented Interfaces:
    `Iterable<PrincipalRelationship>`

      @PublicApi
      public final class PrincipalRelationships
      extends AbstractImmutableEntityList<PrincipalRelationship>

- - ### Field Summary

    - ### Fields inherited from class com.enonic.xp.support.AbstractImmutableEntityList

      `list`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static PrincipalRelationships` | `empty()` |
    `static PrincipalRelationships` | `from​(PrincipalRelationship... principalRelationships)` |
    `static PrincipalRelationships` | `from​(Iterable<? extends PrincipalRelationship> principalRelationships)` |
    `String` | `toString()` |

    - ### Methods inherited from class com.enonic.xp.support.AbstractImmutableEntityList

      `contains, equals, first, get, getList, getSize, hashCode, isEmpty, isNotEmpty, iterator, last, stream`

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

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

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `AbstractImmutableEntityList<PrincipalRelationship>`

    - #### empty

          public static PrincipalRelationships empty()

    - #### from

          public static PrincipalRelationships from​(PrincipalRelationship... principalRelationships)

    - #### from

          public static PrincipalRelationships from​(Iterable<? extends PrincipalRelationship> principalRelationships)