Class AssetLicenses

    • Constructor Detail

      • AssetLicenses

        public AssetLicenses​(AssetDescriptor parentAsset,
                             int totalElementCount,
                             int maxCacheSize)
        Typical Constructor creates an iterator with the supplied list of elements.
        Parameters:
        parentAsset - descriptor of parent asset
        totalElementCount - the total number of elements to process. A negative value is converted to 0.
        maxCacheSize - maximum number of elements that should be retrieved from the property server and cached in the element list at any one time. If a number less than one is supplied, 1 is used.
      • AssetLicenses

        public AssetLicenses​(AssetDescriptor parentAsset,
                             AssetLicenses template)
        Copy/clone constructor. Used to reset iterator element pointer to 0;
        Parameters:
        parentAsset - descriptor of parent asset
        template - type-specific iterator to copy; null to create an empty iterator
    • Method Detail

      • cloneIterator

        protected abstract AssetLicenses cloneIterator​(AssetDescriptor parentAsset)
        Clones this iterator.
        Parameters:
        parentAsset - descriptor of parent asset
        Returns:
        new cloned object.
      • hasNext

        public boolean hasNext()
        The iterator can only be used once to step through the elements. This method returns a boolean to indicate if it has got to the end of the list yet.
        Specified by:
        hasNext in interface Iterator<AssetLicense>
        Returns:
        boolean indicating whether there are more elements.
      • next

        public AssetLicense next()
        Return the next element in the iteration.
        Specified by:
        next in interface Iterator<AssetLicense>
        Returns:
        License next element object that has been cloned.
      • remove

        public void remove()
        Remove the current element in the iterator. (Null implementation since this iterator works off of cached elements from the property (metadata) server.)
        Specified by:
        remove in interface Iterator<AssetLicense>
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class Object
        Returns:
        print out of variables in a JSON-style