-
Notifications
You must be signed in to change notification settings - Fork 107
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
8 changed files
with
83 additions
and
90 deletions.
There are no files selected for viewing
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
8 changes: 3 additions & 5 deletions
8
src/main/java/com/cedarsoftware/util/convert/CharacterConversion.java
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,18 +1,16 @@ | ||
package com.cedarsoftware.util.convert; | ||
|
||
import java.util.concurrent.atomic.AtomicBoolean; | ||
|
||
public class CharacterConversion { | ||
public static boolean toBoolean(Object from, Converter converter, ConverterOptions options) { | ||
static boolean toBoolean(Object from, Converter converter, ConverterOptions options) { | ||
Character c = (Character) from; | ||
return c != CommonValues.CHARACTER_ZERO; | ||
} | ||
|
||
public static double toDouble(Object from, Converter converter, ConverterOptions options) { | ||
static double toDouble(Object from, Converter converter, ConverterOptions options) { | ||
return (char) from; | ||
} | ||
|
||
public static float toFloat(Object from, Converter converter, ConverterOptions options) { | ||
static float toFloat(Object from, Converter converter, ConverterOptions options) { | ||
return (char) from; | ||
} | ||
} |
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
Oops, something went wrong.