Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
b12f7c40
Commit
b12f7c40
authored
Nov 06, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change type of stringListConverter
parent
f942124a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
StringListConverter.java
...data/repository/db/requrey/utils/StringListConverter.java
+6
-5
No files found.
app/src/main/java/com/biganto/visual/roompark/data/repository/db/requrey/utils/StringListConverter.java
View file @
b12f7c40
...
@@ -2,6 +2,7 @@ package com.biganto.visual.roompark.data.repository.db.requrey.utils;
...
@@ -2,6 +2,7 @@ package com.biganto.visual.roompark.data.repository.db.requrey.utils;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
io.requery.Converter
;
import
io.requery.Converter
;
...
@@ -10,14 +11,14 @@ import io.requery.Converter;
...
@@ -10,14 +11,14 @@ import io.requery.Converter;
*/
*/
public
class
StringListConverter
implements
Converter
<
Array
List
<
String
>,
String
>
{
public
class
StringListConverter
implements
Converter
<
List
<
String
>,
String
>
{
private
static
final
String
stringDelimiter
=
"¹/|¹"
;
private
static
final
String
stringDelimiter
=
"¹/|¹"
;
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
@Override
@Override
public
Class
<
Array
List
<
String
>>
getMappedType
()
{
public
Class
<
List
<
String
>>
getMappedType
()
{
return
(
Class
)
Array
List
.
class
;
return
(
Class
)
List
.
class
;
}
}
@Override
@Override
...
@@ -31,7 +32,7 @@ public class StringListConverter implements Converter<ArrayList<String>, String>
...
@@ -31,7 +32,7 @@ public class StringListConverter implements Converter<ArrayList<String>, String>
}
}
@Override
@Override
public
String
convertToPersisted
(
Array
List
<
String
>
value
)
{
public
String
convertToPersisted
(
List
<
String
>
value
)
{
if
(
value
==
null
)
{
if
(
value
==
null
)
{
return
""
;
return
""
;
}
}
...
@@ -48,7 +49,7 @@ public class StringListConverter implements Converter<ArrayList<String>, String>
...
@@ -48,7 +49,7 @@ public class StringListConverter implements Converter<ArrayList<String>, String>
}
}
@Override
@Override
public
ArrayList
<
String
>
convertToMapped
(
Class
<?
extends
Array
List
<
String
>>
type
,
public
List
<
String
>
convertToMapped
(
Class
<?
extends
List
<
String
>>
type
,
String
value
)
{
String
value
)
{
ArrayList
<
String
>
list
=
new
ArrayList
<>();
ArrayList
<
String
>
list
=
new
ArrayList
<>();
if
(
value
!=
null
)
{
if
(
value
!=
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment