All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
pl.allegro.mobile.logic.ClientLogic.kt Maven / Gradle / Ivy
package pl.allegro.mobile.logic
import pl.allegro.mobile.logic.operators.DropOperation
import pl.allegro.mobile.logic.operators.ReverseOperation
import pl.allegro.mobile.logic.operators.arithmetic.AdditionOperation
import pl.allegro.mobile.logic.operators.arithmetic.DivisionOperation
import pl.allegro.mobile.logic.operators.arithmetic.ModuloOperation
import pl.allegro.mobile.logic.operators.arithmetic.MultiplicationOperation
import pl.allegro.mobile.logic.operators.arithmetic.SubtractionOperation
import pl.allegro.mobile.logic.operators.array.AllOperation
import pl.allegro.mobile.logic.operators.array.DistinctOperation
import pl.allegro.mobile.logic.operators.array.FilterOperation
import pl.allegro.mobile.logic.operators.array.FindOperation
import pl.allegro.mobile.logic.operators.array.InOperation
import pl.allegro.mobile.logic.operators.array.JoinToStringOperation
import pl.allegro.mobile.logic.operators.array.MapOperation
import pl.allegro.mobile.logic.operators.array.MergeOperation
import pl.allegro.mobile.logic.operators.array.NoneOperation
import pl.allegro.mobile.logic.operators.array.ReduceOperation
import pl.allegro.mobile.logic.operators.array.SizeOperation
import pl.allegro.mobile.logic.operators.array.SomeOperation
import pl.allegro.mobile.logic.operators.array.SortOperation
import pl.allegro.mobile.logic.operators.dataaccess.MissingOperation
import pl.allegro.mobile.logic.operators.dataaccess.MissingSomeOperation
import pl.allegro.mobile.logic.operators.dataaccess.PrimitiveToElementConversion
import pl.allegro.mobile.logic.operators.logic.AndOperation
import pl.allegro.mobile.logic.operators.logic.DoubleNotOperation
import pl.allegro.mobile.logic.operators.logic.EqualOperation
import pl.allegro.mobile.logic.operators.logic.IfOperation
import pl.allegro.mobile.logic.operators.logic.NotEqualOperation
import pl.allegro.mobile.logic.operators.logic.NotOperation
import pl.allegro.mobile.logic.operators.logic.OrOperation
import pl.allegro.mobile.logic.operators.logic.StrictEqualOperation
import pl.allegro.mobile.logic.operators.logic.StrictNotEqualOperation
import pl.allegro.mobile.logic.operators.miscelanous.CurrentTimeOperation
import pl.allegro.mobile.logic.operators.miscelanous.LogOperation
import pl.allegro.mobile.logic.operators.numeric.BetweenOperation
import pl.allegro.mobile.logic.operators.numeric.BetweenOrEqualOperation
import pl.allegro.mobile.logic.operators.numeric.DecimalFormatOperation
import pl.allegro.mobile.logic.operators.numeric.GreaterOrEqualOperation
import pl.allegro.mobile.logic.operators.numeric.GreaterThanOperation
import pl.allegro.mobile.logic.operators.numeric.LessOrEqualOperation
import pl.allegro.mobile.logic.operators.numeric.LessThanOperation
import pl.allegro.mobile.logic.operators.numeric.MaxOperation
import pl.allegro.mobile.logic.operators.numeric.MinOperation
import pl.allegro.mobile.logic.operators.string.CapitalizeOperation
import pl.allegro.mobile.logic.operators.string.ConcatenateOperation
import pl.allegro.mobile.logic.operators.string.ContainsStringOperation
import pl.allegro.mobile.logic.operators.string.EncodeOperation
import pl.allegro.mobile.logic.operators.string.IsBlankOperation
import pl.allegro.mobile.logic.operators.string.LengthOperation
import pl.allegro.mobile.logic.operators.string.LowercaseOperation
import pl.allegro.mobile.logic.operators.string.ReplaceOperation
import pl.allegro.mobile.logic.operators.string.SubstringOperation
import pl.allegro.mobile.logic.operators.string.ToArrayOperation
import pl.allegro.mobile.logic.operators.string.TrimOperation
import pl.allegro.mobile.logic.operators.string.UppercaseOperation
@ClientLogicMarker
fun clientLogic(init: ClientLogic.() -> ClientLogicElement): ClientLogicElement {
return ClientLogic.init()
}
object ClientLogic :
PrimitiveToElementConversion,
// arithmetic operations
DivisionOperation,
SubtractionOperation,
ModuloOperation,
MultiplicationOperation,
AdditionOperation,
// array operations
AllOperation,
FilterOperation,
InOperation,
MapOperation,
MergeOperation,
NoneOperation,
ReduceOperation,
SomeOperation,
SizeOperation,
SortOperation,
FindOperation,
DistinctOperation,
JoinToStringOperation,
// data access
MissingOperation,
MissingSomeOperation,
// logic
AndOperation,
DoubleNotOperation,
EqualOperation,
IfOperation,
NotEqualOperation,
NotOperation,
OrOperation,
StrictEqualOperation,
StrictNotEqualOperation,
// numeric
BetweenOperation,
BetweenOrEqualOperation,
GreaterOrEqualOperation,
GreaterThanOperation,
LessOrEqualOperation,
LessThanOperation,
MaxOperation,
MinOperation,
DecimalFormatOperation,
// string
ConcatenateOperation,
ContainsStringOperation,
SubstringOperation,
LengthOperation,
TrimOperation,
LowercaseOperation,
UppercaseOperation,
CapitalizeOperation,
ToArrayOperation,
ReplaceOperation,
IsBlankOperation,
EncodeOperation,
// misc
LogOperation,
CurrentTimeOperation,
// multi-type
DropOperation,
ReverseOperation