Class SubnetUtils.SubnetAddressStringIterable

  • All Implemented Interfaces:
    java.lang.Iterable<java.lang.String>
    Enclosing class:
    SubnetUtils

    private static final class SubnetUtils.SubnetAddressStringIterable
    extends java.lang.Object
    implements java.lang.Iterable<java.lang.String>
    Allows an object to be the target of the "for-each loop" statement for a SubnetInfo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<java.lang.String> iterator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • SubnetAddressStringIterable

        private SubnetAddressStringIterable​(SubnetUtils.SubnetInfo subnetInfo)
        Constructs a new instance.
        Parameters:
        subnetInfo - the SubnetInfo to iterate.
    • Method Detail

      • iterator

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