case class

language/scala 2012.07.19 13:35 posted by dev.bistro

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
case class  (0) 2012.07.19

4월즈음



신고

[BOOK] 페이스북 이펙트

life/book 2012.07.15 21:16 posted by dev.bistro

6/30 



신고


티스토리 툴바