-
Notifications
You must be signed in to change notification settings - Fork 0
/
fninteger.html
executable file
·438 lines (412 loc) · 49.7 KB
/
fninteger.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Generated by Apache Maven Doxia Site Renderer 1.3 at May 19, 2012 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>op4j: bending the Java spoon -
Functions: FnInteger</title>
<style type="text/css" media="all">
@import url("./css/maven-base.css");
@import url("./css/maven-theme.css");
@import url("./css/site.css");
</style>
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
<meta name="Date-Revision-yyyymmdd" content="20120519" />
<meta http-equiv="Content-Language" content="en" />
</head>
<body class="composite">
<div id="banner">
<a href="./" id="bannerLeft">
<img src="images/op4j_logo.png" alt="op4j: bending the Java spoon" />
</a>
<div class="clear">
<hr/>
</div>
</div>
<div id="breadcrumbs">
<div class="xleft">
<span id="publishDate">Last Published: 19 May 2012</span>
| <span id="projectVersion">Version: 1.2</span>
</div>
<div class="xright"> <a href="index.html" title="Main">Main</a>
|
<a href="download.html" title="Download">Download</a>
|
<a href="https://www.bendingthejavaspoon.com" class="externalLink" title="Example Recipes Blog">Example Recipes Blog</a>
|
<a href="https://github.com/op4j/op4j.github.com/issues" class="externalLink" title="Issue Tracking">Issue Tracking</a>
|
<a href="apidocs/index.html" title="Javadoc">Javadoc</a>
|
<a href="https://github.com/op4j" class="externalLink" title="Github Project Page">Github Project Page</a>
</div>
<div class="clear">
<hr/>
</div>
</div>
<div id="leftColumn">
<div id="navcolumn">
<h5>The op4j Project</h5>
<ul>
<li class="none">
<a href="index.html" title="· Main">· Main</a>
</li>
<li class="none">
<a href="download.html" title="· Download">· Download</a>
</li>
<li class="none">
<a href="maveninfo.html" title="· Maven Info">· Maven Info</a>
</li>
<li class="none">
<a href="dependencies.html" title="· Dependencies">· Dependencies</a>
</li>
<li class="none">
<a href="https://github.com/op4j" class="externalLink" title="· Github Repository">· Github Repository</a>
</li>
<li class="none">
<a href="https://www.bendingthejavaspoon.com" class="externalLink" title="· Example Recipes">· Example Recipes</a>
</li>
<li class="none">
<a href="https://github.com/op4j/op4j.github.com/issues" class="externalLink" title="· Issue Tracking">· Issue Tracking</a>
</li>
<li class="expanded">
<a href="#" title="· Documentation">· Documentation</a>
<ul>
<li class="none">
<a href="basics.html" title="· The Basics">· The Basics</a>
</li>
<li class="expanded">
<a href="#" title="· Working with...">· Working with...</a>
<ul>
<li class="none">
<a href="arrays.html" title="· Arrays">· Arrays</a>
</li>
<li class="none">
<a href="lists.html" title="· Lists">· Lists</a>
</li>
<li class="none">
<a href="maps.html" title="· Maps">· Maps</a>
</li>
<li class="none">
<a href="sets.html" title="· Sets">· Sets</a>
</li>
<li class="none">
<a href="generic.html" title="· Any object (generic)">· Any object (generic)</a>
</li>
</ul>
</li>
<li class="expanded">
<a href="#" title="· Functions">· Functions</a>
<ul>
<li class="none">
<a href="functions.html" title="· About Functions">· About Functions</a>
</li>
<li class="none">
<a href="call.html" title="· Call">· Call</a>
</li>
<li class="none">
<a href="get.html" title="· Get">· Get</a>
</li>
<li class="none">
<a href="fnfunc.html" title="· FnFunc">· FnFunc</a>
</li>
<li class="none">
<a href="fnboolean.html" title="· FnBoolean">· FnBoolean</a>
</li>
<li class="none">
<a href="fncalendar.html" title="· FnCalendar">· FnCalendar</a>
</li>
<li class="none">
<a href="fndate.html" title="· FnDate">· FnDate</a>
</li>
<li class="none">
<a href="fnobject.html" title="· FnObject">· FnObject</a>
</li>
<li class="none">
<a href="fnstring.html" title="· FnString">· FnString</a>
</li>
<li class="expanded">
<a href="#" title="· Numbers">· Numbers</a>
<ul>
<li class="none">
<a href="fnnumber.html" title="· FnNumber">· FnNumber</a>
</li>
<li class="none">
<a href="fnbigdecimal.html" title="· FnBigDecimal">· FnBigDecimal</a>
</li>
<li class="none">
<a href="fnbiginteger.html" title="· FnBigInteger">· FnBigInteger</a>
</li>
<li class="none">
<strong>· FnInteger</strong>
</li>
<li class="none">
<a href="fnlong.html" title="· FnLong">· FnLong</a>
</li>
<li class="none">
<a href="fnfloat.html" title="· FnFloat">· FnFloat</a>
</li>
<li class="none">
<a href="fndouble.html" title="· FnDouble">· FnDouble</a>
</li>
<li class="none">
<a href="fndouble.html" title="· FnShort">· FnShort</a>
</li>
</ul>
</li>
<li class="expanded">
<a href="#" title="· Structures">· Structures</a>
<ul>
<li class="none">
<a href="fnarray.html" title="· FnArray">· FnArray</a>
</li>
<li class="none">
<a href="fnlist.html" title="· FnList">· FnList</a>
</li>
<li class="none">
<a href="fnmap.html" title="· FnMap">· FnMap</a>
</li>
<li class="none">
<a href="fnset.html" title="· FnSet">· FnSet</a>
</li>
<li class="none">
<a href="fntuple.html" title="· FnTuple">· FnTuple</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="none">
<a href="apidocs/op4j/index.html" title="· Javadoc">· Javadoc</a>
</li>
<li class="none">
<a href="faq.html" title="· FAQ">· FAQ</a>
</li>
</ul>
</li>
<li class="none">
<a href="license.html" title="· License">· License</a>
</li>
<li class="none">
<a href="team.html" title="· Team">· Team</a>
</li>
</ul>
<ul>
<li class="collapsed">
<a href="ognl-about.html" title="· op4j-ognl">· op4j-ognl</a>
</li>
<li class="collapsed">
<a href="jodatime-about.html" title="· op4j-jodatime">· op4j-jodatime</a>
</li>
</ul>
<a href="https://maven.apache.org" title="Built with Maven 2" class="poweredBy">
<img class="poweredBy" alt="Built with Maven 2" src="https://maven.apache.org/images/logos/maven-feather.png" />
</a>
</div>
</div>
<div id="bodyColumn">
<div id="contentBox">
<div class="section"><h2>Functions: FnInteger<a name="Functions:_FnInteger"></a></h2>
<div class="section"><h3>1. Overview<a name="a1._Overview"></a></h3>
<p>
<b><a class="externalLink" href="https://www.op4j.org/apidocs/org/op4j/functions/FnInteger.html">FnInteger</a></b> is a <i>function hub class</i>
containing a lot of static methods to work with Integer objects. Those static methods return functions that take
an <b>Integer</b> object either as its input or output (depending on the function). It includes
conversions to String, to an String representing a currency and logical operations between Integer objects among others.
</p>
</div>
<div class="section"><h3>2. Functions<a name="a2._Functions"></a></h3>
<table class="bodyTable" border="0">
<thead><tr class="a"><th>Function name</th><th>Type</th><th width="240px">Params</th><th>Description</th></tr></thead>
<tbody>
<tr class="b"><td><b>abs</b></td><td>Function<Integer, Integer></td><td></td><td><p> It returns the absolute value of the input </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>add</b></td><td>Function<Integer, Integer></td><td>Number add</td><td><p> It adds the given number to the target and returns the result </p></td></tr>
<tr class="b"><td><b>add</b></td><td>Function<Integer, Integer></td><td>byte add</td><td><p> It adds the given number to the target and returns the result </p></td></tr>
<tr class="a"><td><b>add</b></td><td>Function<Integer, Integer></td><td>short add</td><td><p> It adds the given number to the target and returns the result </p></td></tr>
<tr class="b"><td><b>add</b></td><td>Function<Integer, Integer></td><td>int add</td><td><p> It adds the given number to the target and returns the result </p></td></tr>
<tr class="a"><td><b>add</b></td><td>Function<Integer, Integer></td><td>long add</td><td><p> It adds the given number to the target and returns the result </p></td></tr>
<tr class="b"><td><b>add</b></td><td>Function<Integer, Integer></td><td>float add</td><td><p> It adds the given number to the target and returns the result </p></td></tr>
<tr class="a"><td><b>add</b></td><td>Function<Integer, Integer></td><td>double add</td><td><p> It adds the given number to the target and returns the result </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>avg</b></td><td>Function<Iterable<Integer>, Integer></td><td></td><td><p> It returns the average of all the numbers in the Iterable input object </p></td></tr>
<tr class="a"><td><b>avg</b></td><td>Function<Iterable<Integer>, Integer></td><td>MathContext mathContext</td><td><p> It returns the average of all the numbers in the Iterable input object. The given MathContext will be used to round and set the output precision </p></td></tr>
<tr class="b"><td><b>avg</b></td><td>Function<Iterable<Integer>, Integer></td><td>RoundingMode roundingMode</td><td><p> It returns the average of all the numbers in the Iterable input object. The given RoundingMode will be used to round the output </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>avgArray</b></td><td>Function<Integer[], Integer></td><td></td><td><p> It returns the average of all the numbers in the input array </p></td></tr>
<tr class="b"><td><b>avgArray</b></td><td>Function<Integer[], Integer></td><td>MathContext mathContext</td><td><p> It returns the average of all the numbers in the input array. The given MathContext will be used to round and set the output precision </p></td></tr>
<tr class="a"><td><b>avgArray</b></td><td>Function<Integer[], Integer></td><td>RoundingMode roundingMode</td><td><p> It returns the average of all the numbers in the input array. The given RoundingMode will be used to round the output </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>between</b></td><td>Function<Integer,Boolean></td><td>Number min<br />Number max</td><td><p> Determines whether the target object is between min and max in value, this is, whether <tt>target.compareTo(min) >= 0 && target.compareTo(max) <= 0</tt>. The target and the specified min and max have to implement Comparable. </p></td></tr>
<tr class="a"><td><b>between</b></td><td>Function<Integer,Boolean></td><td>int min<br />int max</td><td><p> Determines whether the target object is between min and max in value, this is, whether <tt>target.compareTo(min) >= 0 && target.compareTo(max) <= 0</tt>. The target and the specified min and max have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>Number divisor</td><td><p> It divides the target element by the given divisor and returns its result </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>byte divisor</td><td><p> It divides the target element by the given divisor and returns its result </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>short divisor</td><td><p> It divides the target element by the given divisor and returns its result </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>int divisor</td><td><p> It divides the target element by the given divisor and returns its result </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>long divisor</td><td><p> It divides the target element by the given divisor and returns its result </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>float divisor</td><td><p> It divides the target element by the given divisor and returns its result </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>double divisor</td><td><p> It divides the target element by the given divisor and returns its result </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>Number divisor<br />MathContext mathContext</td><td><p> It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>byte divisor<br />MathContext mathContext</td><td><p> It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>short divisor<br />MathContext mathContext</td><td><p> It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>int divisor<br />MathContext mathContext</td><td><p> It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>long divisor<br />MathContext mathContext</td><td><p> It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>float divisor<br />MathContext mathContext</td><td><p> It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>double divisor<br />MathContext mathContext</td><td><p> It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>Number divisor<br />RoundingMode roundingMode</td><td><p> It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>byte divisor<br />RoundingMode roundingMode</td><td><p> It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>short divisor<br />RoundingMode roundingMode</td><td><p> It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>int divisor<br />RoundingMode roundingMode</td><td><p> It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>long divisor<br />RoundingMode roundingMode</td><td><p> It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode </p></td></tr>
<tr class="a"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>float divisor<br />RoundingMode roundingMode</td><td><p> It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode </p></td></tr>
<tr class="b"><td><b>divideBy</b></td><td>Function<Integer, Integer></td><td>double divisor<br />RoundingMode roundingMode</td><td><p> It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>eq</b></td><td>Function<Integer,Boolean></td><td>Integer object</td><td><p> Determines whether the target object and the specified object are equal by calling the <tt>equals</tt> method on the target object. </p></td></tr>
<tr class="b"><td><b>eq</b></td><td>Function<Integer,Boolean></td><td>int object</td><td><p> Determines whether the target object and the specified object are equal by calling the <tt>equals</tt> method on the target object. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>eqBy</b></td><td>Function<Integer,Boolean></td><td>IFunction<Integer,?> by<br />Object object</td><td><p> Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the <tt>equals</tt> method. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>eqValue</b></td><td>Function<Integer,Boolean></td><td>Number object</td><td><p> Determines whether the target object and the specified object are equal in value, this is, whether <tt>target.compareTo(object) == 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="a"><td><b>eqValue</b></td><td>Function<Integer,Boolean></td><td>int object</td><td><p> Determines whether the target object and the specified object are equal in value, this is, whether <tt>target.compareTo(object) == 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>eqValueBy</b></td><td>Function<Integer,Boolean></td><td>IFunction<Integer,?> by<br />Object object</td><td><p> Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether <tt>functionResult.compareTo(object) == 0</tt>. Both the function result and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>greaterOrEqTo</b></td><td>Function<Integer,Boolean></td><td>Number object</td><td><p> Determines whether the target object is greater or equal to the specified object in value, this is, whether <tt>target.compareTo(object) >= 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="b"><td><b>greaterOrEqTo</b></td><td>Function<Integer,Boolean></td><td>int object</td><td><p> Determines whether the target object is greater or equal to the specified object in value, this is, whether <tt>target.compareTo(object) >= 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>greaterOrEqToBy</b></td><td>Function<Integer,Boolean></td><td>IFunction<Integer,?> by<br />Object object</td><td><p> Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether <tt>functionResult.compareTo(object) >= 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>greaterThan</b></td><td>Function<Integer,Boolean></td><td>Number object</td><td><p> Determines whether the target object is greater than the specified object in value, this is, whether <tt>target.compareTo(object) > 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="a"><td><b>greaterThan</b></td><td>Function<Integer,Boolean></td><td>int object</td><td><p> Determines whether the target object is greater than the specified object in value, this is, whether <tt>target.compareTo(object) > 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>greaterThanBy</b></td><td>Function<Integer,Boolean></td><td>IFunction<Integer,?> by<br />Object object</td><td><p> Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether <tt>functionResult.compareTo(object) > 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>isNotNull</b></td><td>Function<Integer,Boolean></td><td></td><td><p> Determines whether the target object is null or not. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>isNull</b></td><td>Function<Integer,Boolean></td><td></td><td><p> Determines whether the target object is null or not. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>lessOrEqTo</b></td><td>Function<Integer,Boolean></td><td>Number object</td><td><p> Determines whether the target object is less or equal to the specified object in value, this is, whether <tt>target.compareTo(object) <= 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="b"><td><b>lessOrEqTo</b></td><td>Function<Integer,Boolean></td><td>int object</td><td><p> Determines whether the target object is less or equal to the specified object in value, this is, whether <tt>target.compareTo(object) <= 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>lessOrEqToBy</b></td><td>Function<Integer,Boolean></td><td>IFunction<Integer,?> by<br />Object object</td><td><p> Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether <tt>functionResult.compareTo(object) <= 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>lessThan</b></td><td>Function<Integer,Boolean></td><td>Number object</td><td><p> Determines whether the target object is less than the specified object in value, this is, whether <tt>target.compareTo(object) < 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="a"><td><b>lessThan</b></td><td>Function<Integer,Boolean></td><td>int object</td><td><p> Determines whether the target object is less than the specified object in value, this is, whether <tt>target.compareTo(object) < 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>lessThanBy</b></td><td>Function<Integer,Boolean></td><td>IFunction<Integer,?> by<br />Object object</td><td><p> Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether <tt>functionResult.compareTo(object) < 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>max</b></td><td>Function<Iterable<Integer>, Integer></td><td></td><td><p> It returns the maximum number from an Iterable input object </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>maxArray</b></td><td>Function<Integer[], Integer></td><td></td><td><p> It returns the maximum number from the input array </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>min</b></td><td>Function<Iterable<Integer>, Integer></td><td></td><td><p> It returns the minimum number from an Iterable input object </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>minArray</b></td><td>Function<Integer[], Integer></td><td></td><td><p> It returns the minimum number from the input array </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>module</b></td><td>Function<Integer, Integer></td><td>byte module</td><td><p> It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) </p></td></tr>
<tr class="b"><td><b>module</b></td><td>Function<Integer, Integer></td><td>short module</td><td><p> It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) </p></td></tr>
<tr class="a"><td><b>module</b></td><td>Function<Integer, Integer></td><td>int module</td><td><p> It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) </p></td></tr>
<tr class="b"><td><b>module</b></td><td>Function<Integer, Integer></td><td>long module</td><td><p> It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) </p></td></tr>
<tr class="a"><td><b>module</b></td><td>Function<Integer, Integer></td><td>Byte module</td><td><p> It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) </p></td></tr>
<tr class="b"><td><b>module</b></td><td>Function<Integer, Integer></td><td>Short module</td><td><p> It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) </p></td></tr>
<tr class="a"><td><b>module</b></td><td>Function<Integer, Integer></td><td>Integer module</td><td><p> It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) </p></td></tr>
<tr class="b"><td><b>module</b></td><td>Function<Integer, Integer></td><td>Long module</td><td><p> It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) </p></td></tr>
<tr class="a"><td><b>module</b></td><td>Function<Integer, Integer></td><td>BigInteger module</td><td><p> It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>Number multiplicand</td><td><p> It multiplies target by multiplicand and returns its value </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>byte multiplicand</td><td><p> It multiplies target by multiplicand and returns its value </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>short multiplicand</td><td><p> It multiplies target by multiplicand and returns its value </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>int multiplicand</td><td><p> It multiplies target by multiplicand and returns its value </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>long multiplicand</td><td><p> It multiplies target by multiplicand and returns its value </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>float multiplicand</td><td><p> It multiplies target by multiplicand and returns its value </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>double multiplicand</td><td><p> It multiplies target by multiplicand and returns its value </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>Number multiplicand<br />MathContext mathContext</td><td><p> It multiplies target by multiplicand and returns its value. The result precision and RoundingMode is specified by the given MathContext </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>byte multiplicand<br />MathContext mathContext</td><td><p> It multiplies target by multiplicand and returns its value. The result precision and RoundingMode is specified by the given MathContext </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>short multiplicand<br />MathContext mathContext</td><td><p> It multiplies target by multiplicand and returns its value. The result precision and RoundingMode is specified by the given MathContext </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>int multiplicand<br />MathContext mathContext</td><td><p> It multiplies target by multiplicand and returns its value. The result precision and RoundingMode is specified by the given MathContext </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>long multiplicand<br />MathContext mathContext</td><td><p> It multiplies target by multiplicand and returns its value. The result precision and RoundingMode is specified by the given MathContext </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>float multiplicand<br />MathContext mathContext</td><td><p> It multiplies target by multiplicand and returns its value. The result precision and RoundingMode is specified by the given MathContext </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>double multiplicand<br />MathContext mathContext</td><td><p> It multiplies target by multiplicand and returns its value. The result precision and RoundingMode is specified by the given MathContext </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>Number multiplicand<br />RoundingMode roundingMode</td><td><p> It multiplies target by multiplicand and returns its value. The result is rounded based on the given RoundingMode </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>byte multiplicand<br />RoundingMode roundingMode</td><td><p> It multiplies target by multiplicand and returns its value. The result is rounded based on the given RoundingMode </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>short multiplicand<br />RoundingMode roundingMode</td><td><p> It multiplies target by multiplicand and returns its value. The result is rounded based on the given RoundingMode </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>int multiplicand<br />RoundingMode roundingMode</td><td><p> It multiplies target by multiplicand and returns its value. The result is rounded based on the given RoundingMode </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>long multiplicand<br />RoundingMode roundingMode</td><td><p> It multiplies target by multiplicand and returns its value. The result is rounded based on the given RoundingMode </p></td></tr>
<tr class="a"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>float multiplicand<br />RoundingMode roundingMode</td><td><p> It multiplies target by multiplicand and returns its value. The result is rounded based on the given RoundingMode </p></td></tr>
<tr class="b"><td><b>multiplyBy</b></td><td>Function<Integer, Integer></td><td>double multiplicand<br />RoundingMode roundingMode</td><td><p> It multiplies target by multiplicand and returns its value. The result is rounded based on the given RoundingMode </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>notEq</b></td><td>Function<Integer,Boolean></td><td>Integer object</td><td><p> Determines whether the target object and the specified object are NOT equal by calling the <tt>equals</tt> method on the target object. </p></td></tr>
<tr class="b"><td><b>notEq</b></td><td>Function<Integer,Boolean></td><td>int object</td><td><p> Determines whether the target object and the specified object are NOT equal by calling the <tt>equals</tt> method on the target object. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>notEqBy</b></td><td>Function<Integer,Boolean></td><td>IFunction<Integer,?> by<br />Object object</td><td><p> Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the <tt>equals</tt> method. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>notEqValue</b></td><td>Function<Integer,Boolean></td><td>Number object</td><td><p> Determines whether the target object and the specified object are NOT equal in value, this is, whether <tt>target.compareTo(object) != 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="a"><td><b>notEqValue</b></td><td>Function<Integer,Boolean></td><td>int object</td><td><p> Determines whether the target object and the specified object are NOT equal in value, this is, whether <tt>target.compareTo(object) != 0</tt>. Both the target and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>notEqValueBy</b></td><td>Function<Integer,Boolean></td><td>IFunction<Integer,?> by<br />Object object</td><td><p> Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether <tt>functionResult.compareTo(object) != 0</tt>. Both the function result and the specified object have to implement Comparable. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>pow</b></td><td>Function<Integer, Integer></td><td>int power</td><td><p> It performs the operation target<sup>power</sup> and returns its value </p></td></tr>
<tr class="b"><td><b>pow</b></td><td>Function<Integer, Integer></td><td>int power<br />MathContext mathContext</td><td><p> It performs the operation target<sup>power</sup> and returns its value. The result precision and rounding mode is specified by the given MathContext </p></td></tr>
<tr class="a"><td><b>pow</b></td><td>Function<Integer, Integer></td><td>int power<br />RoundingMode roundingMode</td><td><p> It performs the operation target<sup>power</sup> and returns its value. The result rounding mode is specified by the given RoundingMode </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>remainder</b></td><td>Function<Integer, Integer></td><td>Number divisor</td><td><p> It divides the target element by the given divisor and returns the remainder (target % divisor) </p></td></tr>
<tr class="a"><td><b>remainder</b></td><td>Function<Integer, Integer></td><td>byte divisor</td><td><p> It divides the target element by the given divisor and returns the remainder (target % divisor) </p></td></tr>
<tr class="b"><td><b>remainder</b></td><td>Function<Integer, Integer></td><td>short divisor</td><td><p> It divides the target element by the given divisor and returns the remainder (target % divisor) </p></td></tr>
<tr class="a"><td><b>remainder</b></td><td>Function<Integer, Integer></td><td>int divisor</td><td><p> It divides the target element by the given divisor and returns the remainder (target % divisor) </p></td></tr>
<tr class="b"><td><b>remainder</b></td><td>Function<Integer, Integer></td><td>long divisor</td><td><p> It divides the target element by the given divisor and returns the remainder (target % divisor) </p></td></tr>
<tr class="a"><td><b>remainder</b></td><td>Function<Integer, Integer></td><td>float divisor</td><td><p> It divides the target element by the given divisor and returns the remainder (target % divisor) </p></td></tr>
<tr class="b"><td><b>remainder</b></td><td>Function<Integer, Integer></td><td>double divisor</td><td><p> It divides the target element by the given divisor and returns the remainder (target % divisor) </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>subtract</b></td><td>Function<Integer, Integer></td><td>Number subtract</td><td><p> It subtracts the given number from the target and returns the result </p></td></tr>
<tr class="b"><td><b>subtract</b></td><td>Function<Integer, Integer></td><td>byte subtract</td><td><p> It subtracts the given number from the target and returns the result </p></td></tr>
<tr class="a"><td><b>subtract</b></td><td>Function<Integer, Integer></td><td>short subtract</td><td><p> It subtracts the given number from the target and returns the result </p></td></tr>
<tr class="b"><td><b>subtract</b></td><td>Function<Integer, Integer></td><td>int subtract</td><td><p> It subtracts the given number from the target and returns the result </p></td></tr>
<tr class="a"><td><b>subtract</b></td><td>Function<Integer, Integer></td><td>long subtract</td><td><p> It subtracts the given number from the target and returns the result </p></td></tr>
<tr class="b"><td><b>subtract</b></td><td>Function<Integer, Integer></td><td>float subtract</td><td><p> It subtracts the given number from the target and returns the result </p></td></tr>
<tr class="a"><td><b>subtract</b></td><td>Function<Integer, Integer></td><td>double subtract</td><td><p> It subtracts the given number from the target and returns the result </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>sum</b></td><td>Function<Iterable<Integer>, Integer></td><td></td><td><p> It returns the sum of all the numbers in the Iterable input object </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="a"><td><b>sumArray</b></td><td>Function<Integer[], Integer></td><td></td><td><p> It returns the sum of all the numbers in the input array </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>toCurrencyStr</b></td><td>Function<Integer,String></td><td></td><td><p> It returns the String representation of the target as a currency in the default Locale </p></td></tr>
<tr class="a"><td><b>toCurrencyStr</b></td><td>Function<Integer,String></td><td>boolean groupingUsed</td><td><p> It returns the String representation of the target as a currency in the default Locale </p></td></tr>
<tr class="b"><td><b>toCurrencyStr</b></td><td>Function<Integer,String></td><td>Locale locale</td><td><p> It returns the String representation of the target as a currency in the given Locale </p></td></tr>
<tr class="a"><td><b>toCurrencyStr</b></td><td>Function<Integer,String></td><td>String locale</td><td><p> It returns the String representation of the target as a currency in the given locale </p></td></tr>
<tr class="b"><td><b>toCurrencyStr</b></td><td>Function<Integer,String></td><td>Locale locale<br />boolean groupingUsed</td><td><p> It returns the String representation of the target as a currency in the given Locale </p></td></tr>
<tr class="a"><td><b>toCurrencyStr</b></td><td>Function<Integer,String></td><td>String locale<br />boolean groupingUsed</td><td><p> It returns the String representation of the target as a currency in the given locale </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>toPercentStr</b></td><td>Function<Integer,String></td><td></td><td><p> A String representing a percentage is created from the target number. </p></td></tr>
<tr class="a"><td><b>toPercentStr</b></td><td>Function<Integer,String></td><td>boolean groupingUsed</td><td><p> A String representing a percentage is created from the target number either using grouping or not depending on the given parameter. So, </p> <tt>toPercentStr(true) would return 100,000% if target number is 1000</tt> <br /> <tt>toPercentStr(false) would return 100000% if target number is 1000</tt></td></tr>
<tr class="b"><td><b>toPercentStr</b></td><td>Function<Integer,String></td><td>Locale locale</td><td><p> A String representing a percentage is created from the target number in the given Locale </p></td></tr>
<tr class="a"><td><b>toPercentStr</b></td><td>Function<Integer,String></td><td>String locale</td><td><p> A String representing a percentage is created from the target number in the given locale </p></td></tr>
<tr class="b"><td><b>toPercentStr</b></td><td>Function<Integer,String></td><td>Locale locale<br />boolean groupingUsed</td><td><p> A String representing a percentage is created from the target number in the given Locale. Grouping will be used depending on the value of the groupingUsed parameter. </p></td></tr>
<tr class="a"><td><b>toPercentStr</b></td><td>Function<Integer,String></td><td>String locale<br />boolean groupingUsed</td><td><p> A String representing a percentage is created from the target number in the given locale. Grouping will be used depending on the value of the groupingUsed parameter. </p></td></tr>
<tr class="" bgcolor="#A4A4A4"><td bgcolor="#A4A4A4" colspan="4"></td></tr>
<tr class="b"><td><b>toStr</b></td><td>Function<Integer,String></td><td></td><td><p> It returns the String representation of the input number </p></td></tr>
<tr class="a"><td><b>toStr</b></td><td>Function<Integer,String></td><td>boolean groupingUsed</td><td><p> It returns the String representation of the input number either using or not using grouping </p></td></tr>
<tr class="b"><td><b>toStr</b></td><td>Function<Integer,String></td><td>Locale locale</td><td><p> It returns the String representation of the target number in the given Locale </p></td></tr>
<tr class="a"><td><b>toStr</b></td><td>Function<Integer,String></td><td>String locale</td><td><p> It returns the String representation of the target number in the given locale </p></td></tr>
<tr class="b"><td><b>toStr</b></td><td>Function<Integer,String></td><td>Locale locale<br />boolean groupingUsed</td><td><p> It returns the String representation of the target number in the given Locale. Grouping will be used depending on the value of the groupingUsed parameter </p></td></tr>
<tr class="a"><td><b>toStr</b></td><td>Function<Integer,String></td><td>String locale<br />boolean groupingUsed</td><td><p> It returns the String representation of the target number in the given locale. Grouping will be used depending on the value of the groupingUsed parameter </p></td></tr>
</tbody></table>
</div>
</div>
</div>
</div>
<div class="clear">
<hr/>
</div>
<div id="footer">
<div class="xright">
Copyright © 2012
<a href="https://www.op4j.org">The OP4J team</a>.
All Rights Reserved.
</div>
<div class="clear">
<hr/>
</div>
</div>
</body>
</html>