20 Commits

Author SHA1 Message Date
Gary Gregory
0568456103 Remove redundant type arguments and end-of-line whitespace. 2020-02-14 09:39:49 -05:00
Gary Gregory
485876f9c2 Use final. 2020-02-14 09:36:04 -05:00
Jochen Wiedmann
2ea44b2ada - Added the Streams class.
- Added Functions.stream() as an accessor method.
2020-01-26 22:57:13 +01:00
Gary Gregory
3744263970 Use Objects.requireNonNull() instead of custom check. Minor formatting. 2019-12-25 23:00:43 -05:00
Peter Verhas
23931d528e Functions Javadoc (#466)
* LANG-1480 getAbbreviatedName refactored to create appropriate length short class names

* LANG-1480 code fixed for special extreme case ".." abbreviated to 1 length should result ".." it was throwing exception. Tests are added

* import changed to avoid wild cards
apache master merged into current branch

* Mutable object import was moved to it's original place

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* added another test case

* LANG-1480 fixing JavaDoc documentation as per requested by garydgregory

* LANG-1480 shortcut implemented, argument renamed, more tests

* LANG-1480 checkstyle update

* LANG-1492 tests methods modified to be public

* LANG-1480 imports rearranged

* LANG-1480 imports rearranged

* LANG-1480 imports rearranged

* javadoc was added that explains why there is a return type for a method that never returns

* wording changed in comment

* fixes based on code review by garydgregory
2019-12-21 08:42:53 -05:00
Gary Gregory
7bbbdd2477 Javadoc: Replace <code></code> HTML tags with Javadoc {@code} notation. 2019-12-10 16:27:02 -05:00
Peter Verhas
a32c188c32 Code refactor to simplify Functions and new tests (#463)
* more tests

* formatting change as per requested by checkstyle

* DisplayName was added to the tests

* throw on odd refactored to eliminate copy paste
2019-10-12 15:12:17 -04:00
Sebb
970d794e82 Merge conditionals - no need for separate if block 2019-09-05 17:12:09 +01:00
Gary Gregory
327cf6047d Remove trailing white spaces on all lines. 2019-09-05 11:49:43 -04:00
Gary Gregory
5eac208ce6 Javadoc nits. 2019-09-05 11:41:05 -04:00
Bruno P. Kinoshita
26bc45fdee Fix checkstyle violations (tabs, missing spaces after commas, missing javadocs) 2019-08-25 13:09:20 +12:00
Jochen Wiedmann
bc16e0109a PR: LANG-1447
Added Functions.as* methods.
2019-08-22 22:09:11 +02:00
Allon Mureinik
fc6a392b7c Fix javadoc errors in Functions.java 2019-02-08 20:08:56 +02:00
Allon Mureinik
c5eadb1c6d Functions.java whitspaces
Replace tabs with four spaces, as per the project's Checkstyle rules.
2019-02-08 19:30:35 +02:00
Allon Mureinik
962e529984 Add spaces after commas in Functions.java
Add spaces after commas as per the project's Checkstyle rules.
2019-02-08 19:29:06 +02:00
Allon Mureinik
028c9ec70c Remove unused generic argument from Functions#tryWithResources 2019-02-08 19:25:27 +02:00
Allon Mureinik
b08c92e75d Fix Javadoc issues in Functions 2019-02-08 19:23:40 +02:00
Allon Mureinik
f7fae53aec Functions' interfaces modifiers
Remove the redundant public modifier from the inner interfaces in
Functions, as per the Checkstyle policy of the project.
2019-02-08 18:18:40 +02:00
Jochen Wiedmann (jwi)
2ebc17ba3f Added Functions.tryWithResources. 2019-01-29 11:42:07 +01:00
Jochen Wiedmann (jwi)
11d9eb47a4 Adding the Functions class as a helper for dealing with Java 8 Lambdas. 2019-01-23 14:59:25 +01:00