60 lines
2.2 KiB
Java
60 lines
2.2 KiB
Java
package com.discord.api.channel;
|
|
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.discord.api.channel.Channel;
|
|
import java.util.Comparator;
|
|
/* compiled from: ChannelUtils.kt */
|
|
public final class ChannelUtils$getSortByNameAndType$1<T> implements Comparator<Channel> {
|
|
public final /* synthetic */ Channel.Companion $this_getSortByNameAndType;
|
|
|
|
public ChannelUtils$getSortByNameAndType$1(Channel.Companion companion) {
|
|
this.$this_getSortByNameAndType = companion;
|
|
}
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
|
|
@Override // java.util.Comparator
|
|
public int compare(Channel channel, Channel channel2) {
|
|
long j;
|
|
long j2;
|
|
int i;
|
|
int i2;
|
|
Channel channel3 = channel;
|
|
Channel channel4 = channel2;
|
|
if (channel3 == null) {
|
|
return channel4 == null ? 0 : -1;
|
|
}
|
|
if (channel4 != null) {
|
|
if (channel3.A() == 4 && channel4.A() == 4) {
|
|
if (channel3.t() != channel4.t()) {
|
|
i2 = channel3.t();
|
|
i = channel4.t();
|
|
} else {
|
|
j2 = channel3.h();
|
|
j = channel4.h();
|
|
return (j2 > j ? 1 : (j2 == j ? 0 : -1));
|
|
}
|
|
} else if (channel3.A() == 4) {
|
|
return -1;
|
|
} else {
|
|
if (channel4.A() != 4) {
|
|
if (channel3.A() == 0 && AnimatableValueParser.l1(channel4)) {
|
|
return -1;
|
|
}
|
|
if (!AnimatableValueParser.l1(channel3) || channel4.A() != 0) {
|
|
if (channel3.t() != channel4.t()) {
|
|
i2 = channel3.t();
|
|
i = channel4.t();
|
|
} else {
|
|
j2 = channel3.h();
|
|
j = channel4.h();
|
|
return (j2 > j ? 1 : (j2 == j ? 0 : -1));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return i2 - i;
|
|
}
|
|
return 1;
|
|
}
|
|
}
|