Search in sources :

Example 11 with ObjectiveCName

use of com.google.j2objc.annotations.ObjectiveCName in project actor-platform by actorapp.

the class IntlEngine method areSameDays.

@ObjectiveCName("areSameDaysWithA:withB:")
public boolean areSameDays(long a, long b) {
    Date date1 = new Date(a);
    int y1 = date1.getYear();
    int m1 = date1.getMonth();
    int d1 = date1.getDate();
    Date date2 = new Date(b);
    int y2 = date2.getYear();
    int m2 = date2.getMonth();
    int d2 = date2.getDate();
    return y1 == y2 && m1 == m2 && d1 == d2;
}
Also used : Date(java.util.Date) ObjectiveCName(com.google.j2objc.annotations.ObjectiveCName)

Aggregations

ObjectiveCName (com.google.j2objc.annotations.ObjectiveCName)11 ApiAdminSettings (im.actor.core.api.ApiAdminSettings)5 Date (java.util.Date)2 Annotation (com.google.devtools.j2objc.ast.Annotation)1 SingleMemberAnnotation (com.google.devtools.j2objc.ast.SingleMemberAnnotation)1 Message (im.actor.core.entity.Message)1 TextContent (im.actor.core.entity.content.TextContent)1 RpcException (im.actor.core.network.RpcException)1 JSONException (im.actor.runtime.json.JSONException)1 GenericArrayType (java.lang.reflect.GenericArrayType)1 ParameterizedType (java.lang.reflect.ParameterizedType)1 Type (java.lang.reflect.Type)1 TypeVariable (java.lang.reflect.TypeVariable)1 List (java.util.List)1