Class NetStat.IFdata

java.lang.Object
oshi.driver.mac.net.NetStat.IFdata
Enclosing class:
NetStat

@Immutable public static class NetStat.IFdata extends Object
Class to encapsulate IF data for method return
  • Field Details

    • ifType

      private final int ifType
    • oPackets

      private final long oPackets
    • iPackets

      private final long iPackets
    • oBytes

      private final long oBytes
    • iBytes

      private final long iBytes
    • oErrors

      private final long oErrors
    • iErrors

      private final long iErrors
    • collisions

      private final long collisions
    • iDrops

      private final long iDrops
    • speed

      private final long speed
    • timeStamp

      private final long timeStamp
  • Constructor Details

    • IFdata

      IFdata(int ifType, long oPackets, long iPackets, long oBytes, long iBytes, long oErrors, long iErrors, long collisions, long iDrops, long speed, long timeStamp)
  • Method Details

    • getIfType

      public int getIfType()
      Returns:
      the ifType
    • getOPackets

      public long getOPackets()
      Returns:
      the oPackets
    • getIPackets

      public long getIPackets()
      Returns:
      the iPackets
    • getOBytes

      public long getOBytes()
      Returns:
      the oBytes
    • getIBytes

      public long getIBytes()
      Returns:
      the iBytes
    • getOErrors

      public long getOErrors()
      Returns:
      the oErrors
    • getIErrors

      public long getIErrors()
      Returns:
      the iErrors
    • getCollisions

      public long getCollisions()
      Returns:
      the collisions
    • getIDrops

      public long getIDrops()
      Returns:
      the iDrops
    • getSpeed

      public long getSpeed()
      Returns:
      the speed
    • getTimeStamp

      public long getTimeStamp()
      Returns:
      the timeStamp