Object
com.liferay.portal.kernel.servlet.taglib.aui.ESImport

public final class ESImport extends Object
Author:
Iván Zaera Avellón
  • Constructor Details

    • ESImport

      public ESImport(String module, String symbol)
      Construct an ESM import for a given symbol and module. JavaScript equivalent would be: import {symbol} from module;
    • ESImport

      public ESImport(String alias, String module, String symbol)
      Construct an ESM import for a given symbol and module, where the symbol is aliased. JavaScript equivalent would be: import {symbol as alias} from module;
  • Method Details

    • equals

      public boolean equals(Object object)
      The semantics for the equality of two ESImport objects are that they are the same as long as the symbol and module match, not taking the alias into account.
      Overrides:
      equals in class Object
    • getAlias

      public String getAlias()
    • getModule

      public String getModule()
    • getSymbol

      public String getSymbol()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object