Array.java

Jmnote (토론 | 기여)님의 2019년 4월 18일 (목) 16:46 판 (→‎개요)

1 개요

	public Array pluck(String key) {
		if( size()<1 ) return null;
		if( !this.get(0).keySet().contains(key) ) return null;
		Array res = new Array();
		for (String indexString : this.keySet()) {
			res.push( this.get(indexString).get(key) );
		}
		return res;
	}

2 #

	public Boolean contains(String value) {
		for( Object obj: this.values() )  {
			if( obj.toString().equals(value) ) return true;
		}
		return false;
	}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}