Class NicObject

java.lang.Object
com.baremaps.iploc.nic.NicObject

public class NicObject extends Object
Represents a NIC Object.
  • Constructor Details

    • NicObject

      public NicObject(List<NicAttribute> attributes)
      Constructs a NIC Object.
      Parameters:
      attributes - a list of NIC attributes
  • Method Details

    • type

      public String type()
      Returns the type of the NIC object.
      Returns:
      the type of the NIC object
    • id

      public String id()
      Returns the id of the NIC object.
      Returns:
      the id of the NIC object
    • attributes

      public List<NicAttribute> attributes()
      Returns the attributes of the NIC object.
      Returns:
      the attributes of the NIC object
    • first

      public Optional<String> first(String name)
      Returns the first attribute value matching the attribute name.
      Parameters:
      name - the attribute name
      Returns:
      the attribute value
    • all

      public List<String> all(String name)
      Returns all the attribute values matching the attribute name.
      Parameters:
      name - the attribute name
      Returns:
      the attribute values
    • toMap

      public Map<String,String> toMap()
      Return the attributes as a map
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object