b

case class 본문

language/scala

case class

dev.bistro 2012. 7. 19. 13:35

case 가 있을 경우

case class Person(name:String, age:Int)
	Compiled from "helo.scala"

public class Person extends java.lang.Object 
	implements scala.Product,scala.Serializable{
    public static final scala.Function1 tupled();
    public static final scala.Function1 curry();
    public static final scala.Function1 curried();
    public scala.collection.Iterator productIterator();
    public scala.collection.Iterator productElements();

    public java.lang.String name();
    public int age();
    public Person copy(java.lang.String, int);
    public int copy$default$2();
    public java.lang.String copy$default$1();

    public int hashCode();
    public java.lang.String toString();
    public boolean equals(java.lang.Object);
    public java.lang.String productPrefix();
    public int productArity();

    public java.lang.Object productElement(int);
    public boolean canEqual(java.lang.Object);
    public Person(java.lang.String, int);
}

case가 없을 경우


class Person(name:String, age:Int)
Compiled from "helo.scala"
public class Person extends java.lang.Object implements scala.ScalaObject{
    public Person(java.lang.String, int);
}

참고 : http://www.ibm.com/developerworks/kr/library/j-scala08268.html

'language > scala' 카테고리의 다른 글

Functional Programming Principles in Scala 끝!  (1) 2013.06.04
Scala Tuple  (0) 2013.03.12
2.10을 위한 scala-ide plugin 재설치  (0) 2013.03.12
case class 2번째 이야기.  (0) 2013.02.06
Play framework IDE, Scala Build Sublime  (0) 2013.02.06
Comments