Class ObjectCollectionProviderUnary

All Implemented Interfaces:
Provider<org.anchoranalysis.image.voxel.object.ObjectCollection>

public abstract class ObjectCollectionProviderUnary
extends ObjectCollectionProvider
Implementation of ObjectCollectionProvider that calls a single delegate Provider<ObjectCollection>.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • get

      public org.anchoranalysis.image.voxel.object.ObjectCollection get() throws ProvisionFailedException
      Throws:
      ProvisionFailedException
    • createFromObjects

      protected abstract org.anchoranalysis.image.voxel.object.ObjectCollection createFromObjects​(org.anchoranalysis.image.voxel.object.ObjectCollection objects) throws ProvisionFailedException
      Creates a ObjectCollection given the entity provided by the delegate.
      Parameters:
      objects - the entity provided by the delegate.
      Returns:
      the created ObjectCollection that is returned by the provider.
      Throws:
      ProvisionFailedException - if the provider cannot complete successfully.
    • getObjects

      public Provider<org.anchoranalysis.image.voxel.object.ObjectCollection> getObjects()
      The delegate Provider<ObjectCollection> that is called.
    • setObjects

      public void setObjects​(Provider<org.anchoranalysis.image.voxel.object.ObjectCollection> objects)
      The delegate Provider<ObjectCollection> that is called.