Class Resources.Inst

  • Direct Known Subclasses:
    Resources.ExInstWithCause
    Enclosing class:
    Resources

    public static class Resources.Inst
    extends Resources.Element
    Resource instance. It contains the resource method (which serves to identify the resource), the locale with which we expect to render the resource, and any arguments.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object[] args  
      protected java.lang.String base  
      private java.util.Locale locale  
    • Constructor Summary

      Constructors 
      Constructor Description
      Inst​(java.lang.String base, java.util.Locale locale, java.lang.reflect.Method method, java.lang.Object... args)  
    • Field Detail

      • locale

        private final java.util.Locale locale
      • base

        protected final java.lang.String base
      • args

        protected final java.lang.Object[] args
    • Constructor Detail

      • Inst

        public Inst​(java.lang.String base,
                    java.util.Locale locale,
                    java.lang.reflect.Method method,
                    java.lang.Object... args)
    • Method Detail

      • equals

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

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

        public java.util.ResourceBundle bundle()
      • localize

        public Resources.Inst localize​(java.util.Locale locale)
      • countQuotesIn

        private int countQuotesIn​(java.lang.String message)
      • str

        public java.lang.String str()
      • raw

        public java.lang.String raw()
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()