Skip to content

Commit

Permalink
Add static getNames method
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperjj committed May 2, 2017
1 parent 3bd36d4 commit 346324d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = '2.0.0'
version = '2.1.0'

group = "me.doubledutch"
archivesBaseName = "lazyjson"
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/me/doubledutch/lazyjson/LazyObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,11 @@ public Set<String> keySet(){
return set;
}

public static java.lang.String[] getNames(LazyObject obj){
Set<String> keys=obj.keySet();
return keys.toArray(new String[keys.size()]);
}

public int hashCode(){
int code=1;
for(String key:keySet()){
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/lazyjson_version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Thu Apr 20 16:23:24 PDT 2017
BUILD_VERSION=2.0.0
BUILD_DATE=2017-04-20T23\:23\:24Z
BUILD_NUMBER=937
#Tue May 02 11:39:37 PDT 2017
BUILD_VERSION=2.1.0
BUILD_DATE=2017-05-02T18\:39\:37Z
BUILD_NUMBER=940

0 comments on commit 346324d

Please sign in to comment.