-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
253 additions
and
148 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
# title Travis CI Build Configuration + | ||
# project icecore-hashids + | ||
# version + | ||
# repository https://github.com/arcticicestudio/icecore-hashids + | ||
# author Arctic Ice Studio + | ||
# email [email protected] + | ||
# copyright Copyright (C) 2016 + | ||
# copyright Copyright (C) 2017 + | ||
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
# | ||
# [References] | ||
|
@@ -20,4 +19,4 @@ cache: | |
- $HOME/.m2 | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
script: mvn -B test -P code-coverage | ||
script: mvn -B clean verify -P code-coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
# title Circle CI Build Configuration + | ||
# project icecore-hashids + | ||
# version + | ||
# repository https://github.com/arcticicestudio/icecore-hashids + | ||
# author Arctic Ice Studio + | ||
# email [email protected] + | ||
# copyright Copyright (C) 2016 + | ||
# copyright Copyright (C) 2017 + | ||
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
# | ||
# [References] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,10 @@ | |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
title POM + | ||
project icecore-hashids + | ||
version 0.2.0 + | ||
repository https://github.com/arcticicestudio/icecore-hashids + | ||
author Arctic Ice Studio + | ||
email [email protected] + | ||
copyright Copyright (C) 2016 + | ||
copyright Copyright (C) 2017 + | ||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
[References] | ||
|
@@ -28,7 +27,7 @@ JFrog Bintray | |
|
||
<groupId>com.arcticicestudio</groupId> | ||
<artifactId>icecore-hashids</artifactId> | ||
<version>0.3.0-SNAPSHOT</version> | ||
<version>0.3.0</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>icecore-hashids</name> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,10 @@ | |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
title Binary Assembly Descriptor + | ||
project icecore-hashids + | ||
version 0.2.0 + | ||
repository https://github.com/arcticicestudio/icecore-hashids + | ||
author Arctic Ice Studio + | ||
email [email protected] + | ||
copyright Copyright (C) 2016 + | ||
copyright Copyright (C) 2017 + | ||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
--> | ||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,10 @@ | |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
title Hashid + | ||
project icecore-hashids + | ||
version 0.2.0 + | ||
repository https://github.com/arcticicestudio/icecore-hashids + | ||
author Arctic Ice Studio + | ||
email [email protected] + | ||
copyright Copyright (C) 2016 + | ||
copyright Copyright (C) 2017 + | ||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
*/ | ||
package com.arcticicestudio.icecore.hashids; | ||
|
@@ -15,7 +14,7 @@ copyright Copyright (C) 2016 + | |
import java.util.Objects; | ||
|
||
/** | ||
* Represents a hashid which holds all numbers and the encoded string. | ||
* Represents a hashid holding all numbers and the encoded string. | ||
* <p> | ||
* <strong>This class is immutable.</strong> | ||
* </p> | ||
|
@@ -29,8 +28,17 @@ public final class Hashid { | |
private final long[] numbers; | ||
private final String hash; | ||
|
||
/** | ||
* A empty hashid with no numbers and no hash. | ||
*/ | ||
public static final Hashid EMPTY = new Hashid(new long[0], ""); | ||
|
||
/** | ||
* Constructs a new hashid with the specified numbers and hash. | ||
* | ||
* @param longs the numbers of this hashid | ||
* @param hash the hash of this hashid | ||
*/ | ||
public Hashid(long[] longs, String hash) { | ||
this.numbers = longs; | ||
this.hash = hash; | ||
|
@@ -48,9 +56,9 @@ public long[] numbers() { | |
} | ||
|
||
/** | ||
* Returns the hash string of this hashid | ||
* Returns the hash of this hashid. | ||
* | ||
* @return the hash string of this hashid | ||
* @return the hash of this hashid | ||
*/ | ||
@Override | ||
public String toString() { | ||
|
Oops, something went wrong.