"geometry" : {
"bounds" : {
...
},
"location" : {
"lat" : 55.755826,
"lng" : 37.6173
},
...
public class Geometry
{
private Location location;
//геттер,сеттер
}
class Location {
private String lat;
private String lng;
//геттеры,сеттеры
}
Intent sentIn = new Intent(SENT_SMS_FLAG);
sentIn.putExtra("REQUEST_CODE", requestCode);
final PendingIntent sentPIn = PendingIntent.getBroadcast(getApplicationContext(), id, sentIn, 0);
public void setAlarm(Context context, Integer alarmId, long milliseconds) {
AlarmManager alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
Intent intent = new Intent(context, AlarmReceiver.class);
intent.putExtra(ID, alarmId);
PendingIntent alarmIntent = PendingIntent.getBroadcast(context, alarmId, intent, 0);
Log.d("AlarmReceiver", "Started");
alarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
SystemClock.elapsedRealtime() + milliseconds, alarmIntent);
}
public class A {
private Object b;
public Object getB() {
return b;
}
}
public class A1 extends A {
}
public class A2 extends A {
}
public int calc(String data, A value, Boolean rez) {
value.getB();
}
public interface I {
Object getC();
}
public class B implements I {
private Object c;
public Object getC() {
return c;
}
}
public class D implements I {
private Object c;
public Object getC() {
return c;
}
}
public int calc(String data, I value, Boolean rez) {
value.getC();
}