Package net.dona.doip

Class InDoipMessageFromCollection

    • Constructor Detail

      • InDoipMessageFromCollection

        public InDoipMessageFromCollection​(java.util.Collection<InDoipSegment> segments)
        Constructs an InDoipMessage whose segments are those in the supplied collection.
        Parameters:
        segments - the segments of the message
    • Method Detail

      • iterator

        public java.util.Iterator<InDoipSegment> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<InDoipSegment>
      • spliterator

        public java.util.Spliterator<InDoipSegment> spliterator()
        Specified by:
        spliterator in interface java.lang.Iterable<InDoipSegment>
      • close

        public void close()
        A no-op for this implementation.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface InDoipMessage