类 Student

  • 所有已实现的接口:
    java.lang.Comparable<Student>

    public class Student
    extends java.lang.Object
    implements java.lang.Comparable<Student>
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      static class  Student.Builder  
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      int age  
      int id  
      java.lang.String name  
      int score  
    • 构造器概要

      构造器 
      构造器 说明
      Student​(int id, int age, int score, java.lang.String name)  
    • 方法概要

      修饰符和类型 方法 说明
      int compareTo​(Student o)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • id

        public final int id
      • age

        public int age
      • score

        public int score
      • name

        public java.lang.String name
    • 构造器详细资料

      • Student

        public Student​(int id,
                       int age,
                       int score,
                       java.lang.String name)
    • 方法详细资料

      • compareTo

        public int compareTo​(Student o)
        指定者:
        compareTo 在接口中 java.lang.Comparable<Student>