Class LinkInfo

java.lang.Object
com.zeroc.IceStorm.LinkInfo
All Implemented Interfaces:
Serializable, Cloneable

public final class LinkInfo extends Object implements Cloneable, Serializable
Information about a topic link.
See Also:
  • Field Details

    • theTopic

      public TopicPrx theTopic
      The linked topic proxy. This proxy is never null.
    • name

      public String name
      The name of the linked topic.
    • cost

      public int cost
      The cost of traversing this link.
  • Constructor Details

    • LinkInfo

      public LinkInfo()
      Constructs a LinkInfo.
    • LinkInfo

      public LinkInfo(TopicPrx theTopic, String name, int cost)
      Constructs a LinkInfo with values for all its fields.
      Parameters:
      theTopic - The linked topic proxy.
      name - The name of the linked topic.
      cost - The cost of traversing this link.
  • Method Details

    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public LinkInfo clone()
      Overrides:
      clone in class Object
    • ice_writeMembers

      public void ice_writeMembers(OutputStream ostr)
      Marshals this object's fields into an output stream.
      Parameters:
      ostr - the output stream
    • ice_readMembers

      public void ice_readMembers(InputStream istr)
      Unmarshals and sets this object's fields from an input stream.
      Parameters:
      istr - the input stream
    • ice_write

      public static void ice_write(OutputStream ostr, LinkInfo v)
      Marshals a LinkInfo into an output stream.
      Parameters:
      ostr - the output stream
      v - the LinkInfo to marshal; can be null
    • ice_read

      public static LinkInfo ice_read(InputStream istr)
      Unmarshals a LinkInfo from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the unmarshaled LinkInfo
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, Optional<LinkInfo> v)
      Marshals an optional LinkInfo into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, LinkInfo v)
      Marshals an optional LinkInfo into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

      public static Optional<LinkInfo> ice_read(InputStream istr, int tag)
      Unmarshals an optional LinkInfo from an input stream.
      Parameters:
      istr - the input stream
      tag - the tag
      Returns:
      the unmarshaled value