public EventClassFamilyVersion deepCopy() { return new EventClassFamilyVersion(this); }
/** * Performs a deep copy on <i>other</i>. */ public RouteInfo(RouteInfo other) { if (other.isSetUpdateType()) { this.updateType = other.updateType; } if (other.isSetEventClassFamilyVersion()) { List<EventClassFamilyVersion> __this__eventClassFamilyVersion = new ArrayList<EventClassFamilyVersion>(other.eventClassFamilyVersion.size()); for (EventClassFamilyVersion other_element : other.eventClassFamilyVersion) { __this__eventClassFamilyVersion.add(new EventClassFamilyVersion(other_element)); } this.eventClassFamilyVersion = __this__eventClassFamilyVersion; } if (other.isSetApplicationToken()) { this.applicationToken = other.applicationToken; } if (other.isSetEndpointId()) { this.endpointId = other.endpointId; } }
/** * Transform List(EventClassFamilyVersion) into Thrift * List(org.kaaproject.kaa.server.common.thrift.gen.operations.EventClassFamilyVersion). * * @param ecfVersions List(EventClassFamilyVersion) * @return thrift List(EventClassFamilyVersion) */ private static List<org.kaaproject.kaa.server.common.thrift.gen.operations.EventClassFamilyVersion> transformEcfv(List<EventClassFamilyVersion> ecfVersions) { List<org.kaaproject.kaa.server.common.thrift.gen.operations.EventClassFamilyVersion> ecfvThL = new ArrayList<>(); if (ecfVersions != null) { for (EventClassFamilyVersion ecfv : ecfVersions) { org.kaaproject.kaa.server.common.thrift.gen.operations.EventClassFamilyVersion ecfvTh = new org.kaaproject.kaa.server.common.thrift.gen.operations.EventClassFamilyVersion(); ecfvTh.setEndpointClassFamilyId(ecfv.getEcfId()); ecfvTh.setEndpointClassFamilyVersion(ecfv.getVersion()); ecfvThL.add(ecfvTh); } } return ecfvThL; }
for (int _i2 = 0; _i2 < _list0.size; ++_i2) _elem1 = new EventClassFamilyVersion(); _elem1.read(iprot); struct.eventClassFamilyVersion.add(_elem1);
for (int _i7 = 0; _i7 < _list5.size; ++_i7) _elem6 = new EventClassFamilyVersion(); _elem6.read(iprot); struct.eventClassFamilyVersion.add(_elem6);