JAVA Map, List JQuery Implementation

2021. 2. 23. 14:49·BackEnd
HashMap = function(){
	this.map = new Array();
};

HashMap.prototype = {
	put : function(key, value){
		this.map[key] = value;
	},

	get : function(key) {
		return this.map[key];
	},
    
    getAll : function () {
	    return this.map;
    },
    
    clear : function () {
    	this.map = new Array();
    },
    
    getKeys : function () {
    	var keys = new Array();
    
        for(var i in this.map){
            keys.push(i);
        }
        
		return keys;
	}
}

function List() {

    this.elements = {};

    this.idx = 0;

    this.length = 0;

}

List.prototype.add = function(element) {

  this.length++;

  this.elements[this.idx++] = element;

};

List.prototype.get = function(idx) {

	return this.elements[idx];

};

'BackEnd' 카테고리의 다른 글

[Mybatis] resultMap collection을 이용한 중첩 데이터 출력하기  (2) 2025.02.04
Jenkins gradlew permission denied error  (0) 2022.04.01
Lombok을 이용한 Bulider Pattern  (0) 2021.08.19
Monolithic Architecture 그리고 MSA  (0) 2021.05.14
@Autowired @Resource @Inject  (0) 2020.09.02
'BackEnd' 카테고리의 다른 글
  • Jenkins gradlew permission denied error
  • Lombok을 이용한 Bulider Pattern
  • Monolithic Architecture 그리고 MSA
  • @Autowired @Resource @Inject
seowooJeong
seowooJeong
  • seowooJeong
    개발일기
    seowooJeong
  • 전체
    오늘
    어제
    • 분류 전체보기 (25)
      • FrontEnd (6)
      • BackEnd (6)
      • Project (6)
      • Algorithm (4)
        • JAVA (4)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • React
    • Spring
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    Spring QueryDsl
    jQuery
    숫자 알고리즘
    querydsl 환경설정
    build.gradle querydsl
    gitlab ci/cd
    jenkinsfile 설정
    jenkinsfile
    jenkins gitlab
    resultmap 리스트
    mybatis list
    Java
    intellij querydsl
    숫자 반전
    숫자 거꾸로
    resultmap 중첩
    spring msa cicd
    collection 리스트
    QueryDSL 오류
    jeknins 파이프라인
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
seowooJeong
JAVA Map, List JQuery Implementation
상단으로

티스토리툴바