Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add long-to-boolean conversion to KiwiPrimitives #1053

Closed
sleberknight opened this issue Oct 7, 2023 · 0 comments · Fixed by #1055
Closed

Add long-to-boolean conversion to KiwiPrimitives #1053

sleberknight opened this issue Oct 7, 2023 · 0 comments · Fixed by #1055
Assignees
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Milestone

Comments

@sleberknight
Copy link
Member

Add methods:

public static boolean booleanFromLong(long value)

public static boolean booleanFromLong(long value, BooleanConversionOption)

where BooleanConversionOption is an enum that describes how to convert the long value.

This issue was extracted from #1045

@sleberknight sleberknight added the new feature A new feature such as a new class, method, package, group of classes, etc. label Oct 7, 2023
@sleberknight sleberknight added this to the 3.1.0 milestone Oct 7, 2023
@sleberknight sleberknight self-assigned this Oct 7, 2023
sleberknight added a commit that referenced this issue Oct 7, 2023
* Add BooleanConversionOption enum, which specifies how numeric
  values (not just long) should be converted to boolean values
* Add overloaded booleanFromLong methods: one accepts a long argument
  and uses the ZERO_OR_ONE conversion option, the second accepts
  long and BooleanConversionOption arguments.

Closes #1053
sleberknight added a commit that referenced this issue Oct 7, 2023
* Add overloaded booleanFromLong methods. Both accept a ResultSet
  and a String columnName, but one accepts a BooleanConversionOption
  argument while the other doesn't. The one that does not accept
  a BooleanConversionOption uses the ZERO_OR_ONE option.

Closes #1053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant