Class SimpleEntity

    • Field Detail

      • availableFeatures

        public static final Set<Class<? extends bio.singa.features.model.Feature>> availableFeatures
    • Constructor Detail

      • SimpleEntity

        protected SimpleEntity​(String identifier)
        Creates a new chemical entity with the given identifier.
        Parameters:
        identifier - The identifier.
    • Method Detail

      • setSmall

        public void setSmall​(boolean small)
      • addAdditionalIdentifiers

        public void addAdditionalIdentifiers​(Collection<bio.singa.features.identifiers.model.Identifier> identifiers)
      • addAdditionalIdentifier

        public void addAdditionalIdentifier​(bio.singa.features.identifiers.model.Identifier identifier)
      • getFeatures

        public Collection<bio.singa.features.model.Feature<?>> getFeatures()
        Specified by:
        getFeatures in interface bio.singa.features.model.Featureable
      • getFeature

        public <FeatureType extends bio.singa.features.model.Feature> FeatureType getFeature​(Class<FeatureType> featureTypeClass)
        Specified by:
        getFeature in interface bio.singa.features.model.Featureable
      • setFeature

        public <FeatureType extends bio.singa.features.model.Feature> void setFeature​(Class<FeatureType> featureTypeClass)
        Specified by:
        setFeature in interface bio.singa.features.model.Featureable
      • setFeature

        public <FeatureType extends bio.singa.features.model.Feature> void setFeature​(FeatureType feature)
        Specified by:
        setFeature in interface bio.singa.features.model.Featureable
      • hasFeature

        public <FeatureType extends bio.singa.features.model.Feature> boolean hasFeature​(Class<FeatureType> featureTypeClass)
        Specified by:
        hasFeature in interface bio.singa.features.model.Featureable
      • getAvailableFeatures

        public Set<Class<? extends bio.singa.features.model.Feature>> getAvailableFeatures()
        Specified by:
        getAvailableFeatures in interface bio.singa.features.model.Featureable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object