기관회원 [로그인]
소속기관에서 받은 아이디, 비밀번호를 입력해 주세요.
개인회원 [로그인]

비회원 구매시 입력하신 핸드폰번호를 입력해 주세요.
본인 인증 후 구매내역을 확인하실 수 있습니다.

회원가입
서지반출
원시 타입의 값과 래퍼 클래스의 객체간 자동차 변환를 지원하기 위한 Java의 확장
[STEP1]서지반출 형식 선택
파일형식
@
서지도구
SNS
기타
[STEP2]서지반출 정보 선택
  • 제목
  • URL
돌아가기
확인
취소
  • 원시 타입의 값과 래퍼 클래스의 객체간 자동차 변환를 지원하기 위한 Java의 확장
저자명
김성기,김상철,정병수,Kim. Sung-Ki,Kim. Sang-Chul,Jeong. Byeong-Soo
간행물명
정보과학회논문지. Journal of KIISE. 소프트웨어 및 응용
권/호정보
2001년|28권 10호|pp.785-794 (10 pages)
발행정보
한국정보과학회
파일정보
정기간행물|
PDF텍스트
주제분야
기타
이 논문은 한국과학기술정보연구원과 논문 연계를 통해 무료로 제공되는 원문입니다.
서지반출

기타언어초록

Java 에서 원시 타입과 클래스 타입간에 호환성이 제공되지 않으므로 원시값이 클래스 타입의 변수에 저장되지 못하며, 클래스 타입의 값이 원시 타입 변수에 저장되지 못한다. 객체가 필요한 곳에서 원시값을 사용하기 위해서는 원시 값을 저장하는 래퍼 클래스의 객체 생성이 필요하며, 패러 클래스의 객체에서 저장된 원시 값을 꺼내기 위해서는 특정 메소드를 호출하여야 한다.이러한 불편함과 변환시의 오류를 줄이기 위하여 본 논문에서는 Java의 원시타입과 래퍼 클래스 타입의 호환성 제공을 위한 변환방법을 제안하였다. 원시 타입과 래퍼 클래스 타입간의 호환성 뿐 아니라 원시 타입간의 호환성에 상응하는 래퍼 클래스간의 호환성도 제공하기 위해 래퍼 클래스 계층방법, java.lang.Number 클래스 이용방법, 래퍼 인터페이스 계층방법 등 3가지 변환방법을 제시하였다. 이들 방법의 비교분석과 성능측정을 통하여 래퍼 인터페이스 계층방법이 가장 우수한 방법임을 확인하였다.

기타언어초록

Since there is no compatability between primitive types and class types in Java, values of primitive types cannot be assigned to variables of class types cannot be assigned to variables of primitive types. Primitive values must be converted to objects of wrapper classes and special methods must be called in order to extract the primitive values from those objects. In this paper we propose there methods which provide automatic transformation between primitive types and class types for their compatability. Those methods support compatability not only between primitive types but also between wapper classes. The first method utilizes the hierarchy of wrapper classes, the second utilizer java.lang.Number class, and the third utilizes the hierarchy of wrapper interfaces. Through comparison and performance measurement. we confirm that the third method works better than the others.