MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / clone

Method clone

src/main/java/Client/Contact.java:190–218  ·  view source on GitHub ↗
(Jid newjid, final int status)

Source from the content-addressed store, hash-verified

188 }
189
190 public Contact clone(Jid newjid, final int status) {
191 Contact clone = new Contact();
192 clone.group = group;
193 clone.jid = newjid;
194 clone.nick = nick;
195 clone.key1 = key1;
196 clone.subscr = subscr;
197 clone.offline_type = offline_type;
198 clone.origin = ORIGIN_CLONE;
199 clone.status = status;
200 clone.transport = RosterIcons.getInstance().getTransportIndex(JidUtils.getTransport(newjid)); //<<<<
201//#ifdef PEP
202 clone.pepMood = pepMood;
203 clone.pepMoodName = pepMoodName;
204 clone.pepMoodText = pepMoodText;
205//#ifdef PEP_TUNE
206 clone.pepTune = pepTune;
207 clone.pepTuneText = pepTuneText;
208//#endif
209//#ifdef PEP_ACTIVITY
210 clone.activity = activity;
211//#endif
212//#ifdef PEP_LOCATION
213 clone.location = location;
214//#endif
215
216//#endif
217 return clone;
218 }
219
220 public int getColor() {
221//#if USE_ROTATOR

Callers 3

getContactMethod · 0.95
processServerMessageMethod · 0.45
HiMethod · 0.45

Calls 3

getInstanceMethod · 0.95
getTransportMethod · 0.95
getTransportIndexMethod · 0.80

Tested by

no test coverage detected