Skip to content

Commit

Permalink
Renamed distributions to lower case, updated externs and README
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Oct 23, 2015
1 parent 38baa95 commit 68a28d5
Show file tree
Hide file tree
Showing 16 changed files with 1,557 additions and 31 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Long.js - A Long class for representing a 64 bit two's-complement integer ](https://raw.github.com/dcodeIO/Long.js/master/Long.png)
![Long.js - A Long class for representing a 64 bit two's-complement integer ](https://raw.github.com/dcodeIO/Long.js/master/long.png)
=======
A Long class for representing a 64 bit two's-complement integer value derived from the [Closure Library](https://github.com/google/closure-library)
for stand-alone use and extended with unsigned support.
Expand Down Expand Up @@ -229,7 +229,7 @@ Compares this Long's value with the specified's.
| other | *!Long | number | string* | Other value
| **@returns** | *number* | 0 if they are the same, 1 if the this is greater and -1 if the given one is greater

#### Long#div(divisor)
#### Long#divide/div(divisor)

Returns this Long divided by the specified.

Expand All @@ -238,7 +238,7 @@ Returns this Long divided by the specified.
| divisor | *!Long | number | string* | Divisor
| **@returns** | *!Long* | Quotient

#### Long#equals(other)
#### Long#equals/eq(other)

Tests if this Long's value equals the specified's.

Expand Down Expand Up @@ -287,7 +287,7 @@ Gets the number of bits needed to represent the absolute value of this Long.
|-----------------|-----------------|---------------
| **@returns** | *number* |

#### Long#greaterThan(other)
#### Long#greaterThan/gt(other)

Tests if this Long's value is greater than the specified's.

Expand All @@ -296,7 +296,7 @@ Tests if this Long's value is greater than the specified's.
| other | *!Long | number | string* | Other value
| **@returns** | *boolean* |

#### Long#greaterThanOrEqual(other)
#### Long#greaterThanOrEqual/gte(other)

Tests if this Long's value is greater than or equal the specified's.

Expand Down Expand Up @@ -345,7 +345,7 @@ Tests if this Long's value equals zero.
|-----------------|-----------------|---------------
| **@returns** | *boolean* |

#### Long#lessThan(other)
#### Long#lessThan/lt(other)

Tests if this Long's value is less than the specified's.

Expand All @@ -354,7 +354,7 @@ Tests if this Long's value is less than the specified's.
| other | *!Long | number | string* | Other value
| **@returns** | *boolean* |

#### Long#lessThanOrEqual(other)
#### Long#lessThanOrEqual/lte(other)

Tests if this Long's value is less than or equal the specified's.

Expand All @@ -363,7 +363,7 @@ Tests if this Long's value is less than or equal the specified's.
| other | *!Long | number | string* | Other value
| **@returns** | *boolean* |

#### Long#modulo(divisor)
#### Long#modulo/mod(divisor)

Returns this Long modulo the specified.

Expand All @@ -372,7 +372,7 @@ Returns this Long modulo the specified.
| divisor | *!Long | number | string* | Divisor
| **@returns** | *!Long* | Remainder

#### Long#multiply(multiplier)
#### Long#multiply/mul(multiplier)

Returns the product of this and the specified Long.

Expand All @@ -381,7 +381,7 @@ Returns the product of this and the specified Long.
| multiplier | *!Long | number | string* | Multiplier
| **@returns** | *!Long* | Product

#### Long#negate()
#### Long#negate/neg()

Negates this Long's value.

Expand All @@ -397,7 +397,7 @@ Returns the bitwise NOT of this Long.
|-----------------|-----------------|---------------
| **@returns** | *!Long* |

#### Long#notEquals(other)
#### Long#notEquals/neq(other)

Tests if this Long's value differs from the specified's.

Expand All @@ -415,7 +415,7 @@ Returns the bitwise OR of this Long and the specified.
| other | *!Long | number | string* | Other Long
| **@returns** | *!Long* |

#### Long#shiftLeft(numBits)
#### Long#shiftLeft/shl(numBits)

Returns this Long with bits shifted to the left by the given amount.

Expand All @@ -424,7 +424,7 @@ Returns this Long with bits shifted to the left by the given amount.
| numBits | *number | !Long* | Number of bits
| **@returns** | *!Long* | Shifted Long

#### Long#shiftRight(numBits)
#### Long#shiftRight/shr(numBits)

Returns this Long with bits arithmetically shifted to the right by the given amount.

Expand All @@ -433,7 +433,7 @@ Returns this Long with bits arithmetically shifted to the right by the given amo
| numBits | *number | !Long* | Number of bits
| **@returns** | *!Long* | Shifted Long

#### Long#shiftRightUnsigned(numBits)
#### Long#shiftRightUnsigned/shru(numBits)

Returns this Long with bits logically shifted to the right by the given amount.

Expand All @@ -442,7 +442,7 @@ Returns this Long with bits logically shifted to the right by the given amount.
| numBits | *number | !Long* | Number of bits
| **@returns** | *!Long* | Shifted Long

#### Long#subtract(subtrahend)
#### Long#subtract/sub(subtrahend)

Returns the difference of this and the specified Long.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "long",
"version": "2.4.0",
"version": "3.0.0",
"author": "Daniel Wirtz <[email protected]>",
"description": "A Long class for representing a 64 bit two's-complement integer value.",
"main": "dist/Long.js",
Expand Down
8 changes: 4 additions & 4 deletions dist/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Distributions
=============

* **[Long.js](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/Long.js)**
* **[long.js](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/long.js)**
contains the commented source.

* **[Long.min.js](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/Long.min.js)**
* **[long.min.js](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/long.min.js)**
has been compiled with Closure Compiler using `--compilation_level=ADVANCED_OPTIMIZATIONS`.

* **[Long.min.js.gz](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/Long.min.js.gz)**
* **[long.min.js.gz](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/long.min.js.gz)**
has also been gzipped using `-9`.

* **[Long.min.map](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/Long.min.map)**
* **[long.min.map](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/long.min.map)**
is the source map generated by Closure Compiler.

Also available as `long` on [npm](https://www.npmjs.org/package/long) and [bower](http://bower.io/search/?q=long).
File renamed without changes.
File renamed without changes.
Binary file renamed dist/Long.min.js.gz → dist/long.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/Long.min.map → dist/long.min.map

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions externs/Long.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,36 +198,72 @@ Long.prototype.isEven = function() {};
*/
Long.prototype.equals = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.eq = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.notEquals = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.neq = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.lessThan = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.lt = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.lessThanOrEqual = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.lte = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.greaterThan = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.gt = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.greaterThanOrEqual = function(other) {};

/**
* @param {!Long|number|string} other
* @return {boolean}
*/
Long.prototype.gte = function(other) {};

/**
* @param {!Long|number|string} other
* @return {number}
Expand All @@ -239,6 +275,11 @@ Long.prototype.compare = function(other) {};
*/
Long.prototype.negate = function() {};

/**
* @return {!Long}
*/
Long.prototype.neg = function() {};

/**
* @param {!Long|number|string} other
* @return {!Long}
Expand All @@ -251,12 +292,30 @@ Long.prototype.add = function(other) {};
*/
Long.prototype.subtract = function(other) {};

/**
* @param {!Long|number|string} other
* @return {!Long}
*/
Long.prototype.sub = function(other) {};

/**
* @param {!Long|number|string} other
* @return {!Long}
*/
Long.prototype.multiply = function(other) {};

/**
* @param {!Long|number|string} other
* @return {!Long}
*/
Long.prototype.mul = function(other) {};

/**
* @param {!Long|number|string} other
* @return {!Long}
*/
Long.prototype.divide = function(other) {};

/**
* @param {!Long|number|string} other
* @return {!Long}
Expand All @@ -269,6 +328,12 @@ Long.prototype.div = function(other) {};
*/
Long.prototype.modulo = function(other) {};

/**
* @param {!Long|number|string} other
* @return {!Long}
*/
Long.prototype.mod = function(other) {};

/**
* @return {!Long}
*/
Expand Down Expand Up @@ -298,18 +363,36 @@ Long.prototype.xor = function(other) {};
*/
Long.prototype.shiftLeft = function(numBits) {};

/**
* @param {number|!Long} numBits
* @return {!Long}
*/
Long.prototype.shl = function(numBits) {};

/**
* @param {number|!Long} numBits
* @return {!Long}
*/
Long.prototype.shiftRight = function(numBits) {};

/**
* @param {number|!Long} numBits
* @return {!Long}
*/
Long.prototype.shr = function(numBits) {};

/**
* @param {number|!Long} numBits
* @return {!Long}
*/
Long.prototype.shiftRightUnsigned = function(numBits) {};

/**
* @param {number|!Long} numBits
* @return {!Long}
*/
Long.prototype.shru = function(numBits) {};

/**
* @return {!Long}
*/
Expand Down
Loading

0 comments on commit 68a28d5

Please sign in to comment.