Class EnumerablesTest.Dept

  • Enclosing class:
    EnumerablesTest

    private static class EnumerablesTest.Dept
    extends java.lang.Object
    Department record.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int deptno  
      (package private) java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      Dept​(int deptno, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • deptno

        final int deptno
      • name

        final java.lang.String name
    • Constructor Detail

      • Dept

        Dept​(int deptno,
             java.lang.String name)
    • Method Detail

      • toString

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