Package squidpony
Class Converters
java.lang.Object
squidpony.Converters
public class Converters extends Object
Ways to produce concrete implementations of StringConvert for various data structures.
Keeping the StringConvert producers separate from the data structures allows us to convert
JDK types as well as to keep the parts that need ObText, and thus RegExodus, separate from
the more general-use data structures.
Created by Tommy Ettinger on 3/9/2017.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Converters()
-
Method Summary
-
Field Details
-
convertCoord
-
convertArrayCoord
-
convertGreasedRegion
-
convertIntVLA
-
convertFakeLanguageGen
-
convertSentenceForm
-
convertMarkovText
-
convertObText
-
convertWeightedTable
-
convertString
Simple implementation to help when passing StringConverts around with data that is already a String. -
convertBoolean
-
convertByte
-
convertShort
-
convertInt
-
convertLong
-
convertFloat
-
convertDouble
-
convertChar
-
convertArrayBoolean
-
convertArrayByte
-
convertArrayShort
-
convertArrayInt
-
convertArrayLong
-
convertArrayFloat
-
convertArrayDouble
-
convertArrayChar
-
convertArrayBoolean2D
-
convertArrayByte2D
-
convertArrayShort2D
-
convertArrayInt2D
-
convertArrayLong2D
-
convertArrayFloat2D
-
convertArrayDouble2D
-
convertArrayChar2D
-
-
Constructor Details
-
Converters
public Converters()
-
-
Method Details
-
appendQuoted
-
makeMatcher
-
convertOrderedSet
-
convertOrderedSet
-
convertOrderedSet
-
convertUnorderedSet
-
convertUnorderedSet
-
convertUnorderedSet
-
convertOrderedMap
public static <K, V> StringConvert<OrderedMap<K,V>> convertOrderedMap(StringConvert<K> convertK, StringConvert<V> convertV) -
convertOrderedMap
public static <K, V> StringConvert<OrderedMap<K,V>> convertOrderedMap(CharSequence typeK, CharSequence typeV) -
convertOrderedMap
public static <K, V> StringConvert<OrderedMap<K,V>> convertOrderedMap(Class<K> typeK, Class<V> typeV) -
convertUnorderedMap
public static <K, V> StringConvert<UnorderedMap<K,V>> convertUnorderedMap(StringConvert<K> convertK, StringConvert<V> convertV) -
convertUnorderedMap
public static <K, V> StringConvert<UnorderedMap<K,V>> convertUnorderedMap(CharSequence typeK, CharSequence typeV) -
convertUnorderedMap
public static <K, V> StringConvert<UnorderedMap<K,V>> convertUnorderedMap(Class<K> typeK, Class<V> typeV) -
convertHashSet
-
convertHashSet
-
convertHashSet
-
convertHashMap
public static <K, V> StringConvert<HashMap<K,V>> convertHashMap(StringConvert<K> convertK, StringConvert<V> convertV) -
convertHashMap
public static <K, V> StringConvert<HashMap<K,V>> convertHashMap(CharSequence typeK, CharSequence typeV) -
convertHashMap
-
convertArrangement
-
convertArrangement
-
convertArrangement
-
convertArrayList
-
convertArrayList
-
convertArrayList
-
convertList
-
convertList
-
convertList
-