태그>generics(총 31개의 글)
'generics' 관련 최근글
-
- Swift 제너릭(Generics)
-
테디호프의 이글루입니다. by 테디호프|2021/05/05 19:11
안녕하세요 테디호프입니다. 오늘은 제너릭(Generics)에 대해 알아봅니다.관련 설명이 요녀석은 Swift 공식 홈페이지에 한글로 잘 나와있어서 퍼오기만 한 것 같네요.공식 홈페이지 예제를 따라 수행해본 것..
- Swift 제너릭(Generics)
-
- Generics
-
SCIENART BB by SCIENART BB|2018/11/19 09:31
Generics Generic code enables you to write flexible, reusable functions and types that can work with any type, subject to requirements that you define. You can write code that avoids duplication and expresses its intent in a cl..
- Generics
-
- Generics
-
SCIENART BB by SCIENART BB|2018/07/31 00:12
기본응용Number의 부분 클래스인 형식 T의 Generic fun oneHalf(value:T):Double { return value.toDouble()/2.0}fun main(args: Array) { println(oneHalf(3))}fun max(first:T,second:T):T{ return if (first > second) first else s..
- Generics
-
- 12. Generics
-
사진올리기 귀찮아서 글로만 쓰면 과연 누가 볼까 1호점 by keispace|2015/04/09 14:30
Generics(1.5 이후)c+의 template 문법에서 유래.apiDOC에서 표시가 generics로 만들어져 있다는 의미목적특정 타입(객체 타입)을 미리 검사사전에 잘못된 데이터 타입을 체크타입 안정성 제공c+의..
- 12. Generics
-
- 12. Generics
-
사진올리기 귀찮아서 글로만 쓰면 과연 누가 볼까 1호점 by keispace|2015/04/09 14:30
Generics(1.5 이후)c+의 template 문법에서 유래.apiDOC에서 표시가 generics로 만들어져 있다는 의미목적특정 타입(객체 타입)을 미리 검사사전에 잘못된 데이터 타입을 체크타입 안정성 제공c+의..
- 12. Generics
-
- List element에 interface를 넣었더니, 불편해
-
공부가 본업. by 언제나19|2012/05/02 15:04
public interface IA {} public class CA implements IA {} List iList = new ArrayList();List cList = new ArrayList(); IA ia = new CA(); // 이건 되지CA ca = new CA(); iList.add(ia); // 이것도 되겠지iList.add(ca); // 이것도 됐던 것 같다...
- List element에 interface를 넣었더니, 불편해
-
- mvn install 1.3 error 나는 경우
-
뜨거운머리 차가운 가슴 by hothead|2010/09/24 14:43
다음과 같이 에러가 나는 원인은 위에 써있으니 다들 알 것이다. 이것을 해결하기 위해서는 maven의 compiler 플러그인의 configuration 항목에 version을 명시해 주어야 한다. 해당하는 프로젝트 디렉터리..
- mvn install 1.3 error 나는 경우
-
- Java :: Generics :: RawType
-
do { Jazz jzz = JazzFactory.newInstance(feel); jzz.play(); } while(true); by myou|2010/02/10 01:50
[Test.java] 1 import java.util.ArrayList; 2 import java.util.Collection; 3 4 public class Test { 5 public static void main(String[] args) { 6 Collection c = new ArrayList(); 7 8 c.add(new String()); 9 10 Integer i = (Integer) c.iterat..
- Java :: Generics :: RawType
-
- Java :: Generics
-
do { Jazz jzz = JazzFactory.newInstance(feel); jzz.play(); } while(true); by myou|2009/11/16 03:13
What is generics? It allows a type or method to operate on objects of various types while providing compile-time type safety. Why generics, not cast? Cast introduces the possibility of a run time error, since the programmer may be mi..
- Java :: Generics
-
- .NET Generics FAQ 자료
-
디밥의 블로그 by debop|2009/07/10 17:47
MSDN 에 Generics에 대한 FAQ가 몇 개 있네요. Generics FAQ : .NET FrameworkGenerics FAQ : Best PracticesGenerics FAQ : FundamentalsGenerics FAQ : Tool Support벌써 소개된지 몇년이 지났지만, 아직도 잘 사용하지 못하는 사람들이 많군요.
- .NET Generics FAQ 자료
-
- C# Generics : runtime type checking을 통해 최적화하기
-
디밥의 블로그 by debop|2009/07/03 22:28
사실 처음 Generics를 사용할 때는 코드량 줄이는데만 신경 썼습니다^^ 그 후 이제 .NET 3.0 이상으로 넘어오면서, LINQ to Objects 의 Enumerable 에 대한 코드를 Reflector를 통해 보면서, 몇가지 제가 잘 못하고 있는 것을 알았습니다. IEnumerable 수형의 갯수를 세..
- C# Generics : runtime type checking을 통해 최적화하기
-
- C# Generics - .NET 1.1 코드 변환하기
-
디밥의 블로그 by debop|2009/07/03 21:43
아직도 .NET 1.1의 ArrayList, Hashtable을 사용하십니까?아무리 Generic 타입이 좋다한들 그냥 쓰던거 쓰시겠습니까? 뭘로 바꿔야할지 모르겠다구요? 기존 System.Collections 에 있는 class 들을 System.Collections.Generic, System.Collections.Object..
- C# Generics - .NET 1.1 코드 변환하기
-
- C# Generics - JIT Compiling
-
디밥의 블로그 by debop|2009/07/03 21:35
Generics 타입에는 두 가지 구분을 둘 수 있습니다. Open Generic Type : type parameter로 정의된 일반적인 generic 타입 (예: List() )Closed Generic Type : type parameter가 아닌 일반 수형이 정의된 타입 (예 : List() ) 여러개의 Type Parameter를 ..
- C# Generics - JIT Compiling