Class LinuxUserGroupInfo

java.lang.Object
oshi.software.os.linux.LinuxUserGroupInfo

public class LinuxUserGroupInfo
extends java.lang.Object

LinuxUserGroupInfo class.

  • Constructor Summary

    Constructors 
    Constructor Description
    LinuxUserGroupInfo()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getGroupName​(java.lang.String groupId)
    getGroupName.
    Pair<java.lang.String,​java.lang.String> getUser​(java.lang.String userId)
    Gets a user from their ID

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getUser

      public Pair<java.lang.String,​java.lang.String> getUser​(java.lang.String userId)
      Gets a user from their ID
      Parameters:
      userId - a user ID
      Returns:
      a pair containing that user id as the first element and the user name as the second
    • getGroupName

      public java.lang.String getGroupName​(java.lang.String groupId)

      getGroupName.

      Parameters:
      groupId - a String object.
      Returns:
      a String object.