public interface Owner
A user and group ID that can be used to indicate file ownership.
Since:
2.3.0
Author:
Phillip Webb
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Owner
    Owner for root ownership.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Return the group identifier (GID) of the owner.
    long
    Return the user identifier (UID) of the owner.
    static Owner
    of(long uid, long gid)
    Factory method to create a new Owner with specified user/group identifier.
  • Field Details

    • ROOT

      static final Owner ROOT
      Owner for root ownership.
  • Method Details

    • getUid

      long getUid()
      Return the user identifier (UID) of the owner.
      Returns:
      the user identifier
    • getGid

      long getGid()
      Return the group identifier (GID) of the owner.
      Returns:
      the group identifier
    • of

      static Owner of(long uid, long gid)
      Factory method to create a new Owner with specified user/group identifier.
      Parameters:
      uid - the user identifier
      gid - the group identifier
      Returns:
      a new Owner instance