[android] Minimal Android wrapper on 'format' expression

For converting to Java types, flatten 'text-field' back to a string.
This commit is contained in:
Chris Loer
2018-09-19 15:20:03 -07:00
committed by Łukasz Paczos
parent fc2afc1d23
commit 78a1c30e80
3 changed files with 11 additions and 52 deletions

View File

@@ -3224,6 +3224,11 @@ public class Expression {
return new Expression("collator", new ExpressionMap(map));
}
public static Expression format(Expression input) {
Map<String, Expression> map = new HashMap<>();
return new Expression("format", input, new ExpressionMap(map));
}
/**
* Asserts that the input value is an object. If it is not, the expression is an error
* The asserted input value is returned as result.
@@ -4441,4 +4446,4 @@ public class Expression {
}
return objects;
}
}
}