package jetbrains.mps.lang.typesystem.structure;

/*Generated by MPS */

import jetbrains.mps.smodel.runtime.EnumerationDescriptorBase;
import jetbrains.mps.smodel.runtime.EnumerationDescriptor;
import jetbrains.mps.lang.smodel.EnumerationLiteralsIndex;
import java.util.List;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.NotNull;

public class EnumerationDescriptor_InequalityProperty extends EnumerationDescriptorBase {

  public EnumerationDescriptor_InequalityProperty() {
    super(0x7a5dda6291404668L, 0xab76d5ed1746f2b2L, 0x6b67310af31422a4L, "InequalityProperty", "r:00000000-0000-4000-0000-011c895902b4(jetbrains.mps.lang.typesystem.structure)/4241665505353447936");
  }

  private final EnumerationDescriptor.MemberDescriptor myMember_as_is_0 = new EnumerationDescriptor.MemberDescriptor("as_is", "as is", 0x6b67310af31422a5L, "r:00000000-0000-4000-0000-011c895902b4(jetbrains.mps.lang.typesystem.structure)/4241665505353447938");
  private final EnumerationDescriptor.MemberDescriptor myMember_same_as_inequality_0 = new EnumerationDescriptor.MemberDescriptor("same_as_inequality", "same as inequality", 0x6b67310af31422a6L, "r:00000000-0000-4000-0000-011c895902b4(jetbrains.mps.lang.typesystem.structure)/4241665505353447939");
  private final EnumerationDescriptor.MemberDescriptor myMember_opposite_to_inequality_0 = new EnumerationDescriptor.MemberDescriptor("opposite_to_inequality", "opposite to inequality", 0x6b67310af31422a7L, "r:00000000-0000-4000-0000-011c895902b4(jetbrains.mps.lang.typesystem.structure)/4241665505353447940");

  private final EnumerationLiteralsIndex myIndex = EnumerationLiteralsIndex.build(0x7a5dda6291404668L, 0xab76d5ed1746f2b2L, 0x6b67310af31422a4L, 0x6b67310af31422a5L, 0x6b67310af31422a6L, 0x6b67310af31422a7L);
  private final List<EnumerationDescriptor.MemberDescriptor> myMembers = new EnumerationDescriptorBase.MembersList(myIndex, myMember_as_is_0, myMember_same_as_inequality_0, myMember_opposite_to_inequality_0);

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getDefault() {
    return myMember_as_is_0;
  }

  @NotNull
  @Override
  public List<EnumerationDescriptor.MemberDescriptor> getMembers() {
    return myMembers;
  }

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getMember(@Nullable String memberName) {
    if (memberName == null) {
      return null;
    }
    switch (memberName) {
      case "as_is":
        return myMember_as_is_0;
      case "same_as_inequality":
        return myMember_same_as_inequality_0;
      case "opposite_to_inequality":
        return myMember_opposite_to_inequality_0;
    }
    return null;
  }

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getMember(long idValue) {
    int index = myIndex.index(idValue);
    if (index == -1) {
      return null;
    }
    return myMembers.get(index);
  }
}
