Class AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>

  • Direct Known Subclasses:
    CollationAttributeFactory, ICUCollationAttributeFactory
    Enclosing class:
    AttributeFactory

    public abstract static class AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>
    extends AttributeFactory
    Expert: AttributeFactory returning an instance of the given clazz for the attributes it implements. For all other attributes it calls the given delegate factory as fallback. This class can be used to prefer a specific AttributeImpl which combines multiple attributes over separate classes.
    • Constructor Detail

      • StaticImplementationAttributeFactory

        public StaticImplementationAttributeFactory​(AttributeFactory delegate,
                                                    java.lang.Class<A> clazz)
        Expert: Creates an AttributeFactory returning clazz as instance for the attributes it implements and for all other attributes calls the given delegate factory.
    • Method Detail

      • createInstance

        protected abstract A createInstance()
        Creates an instance of A.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object