Code example for Parcel

Methods: readFloatreadIntreadLongreadString

0
        this.endDate = copy.getTimeEnd();
        this.events = copy.getEvents();
    } 
 
    public Lecture(Parcel in) {
        id = in.readLong();
        title = in.readString();
        number = in.readString();
        staff = in.readString();
        semester = in.readString();
        description = in.readString();
        ects = in.readFloat();
        startDate = new Time();
        startDate.set(in.readLong());
        endDate = new Time();
        endDate.set(in.readLong());
        events = new LinkedList<Event>();
        int eventSize = in.readInt();
        for (int i = 0; i < eventSize; i++) {
            events.add(new Event(in));
        } 
    } 
 
Experience pair programming with AI  Get Codota for Java
5
CodeRank