Class MCClassLoader

  • All Implemented Interfaces:
    IMCClassLoader

    public class MCClassLoader
    extends java.lang.Object
    implements IMCClassLoader
    Base implementation of the IMCClassLoader interface.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private IMCType type  
    • Constructor Summary

      Constructors 
      Constructor Description
      MCClassLoader​(IMCType type, java.lang.String name)
      Create a new classloader instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getName()
      Returns the name of the classloader.
      IMCType getType()
      Returns the type of the classloader.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • MCClassLoader

        public MCClassLoader​(IMCType type,
                             java.lang.String name)
        Create a new classloader instance.
        Parameters:
        type - classloader type
        name - classloader name
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: IMCClassLoader
        Returns the name of the classloader.
        Specified by:
        getName in interface IMCClassLoader
        Returns:
        the classloader name
      • hashCode

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object