Skip to content
Snippets Groups Projects
Select Git revision
  • 71c830fe081266ce21d50a636c73c6a8e2f852b2
  • master default protected
2 results

roundtrip_test.go

Blame
  • MessageFlagLong.kt 729 B
    /*
     * Kotlin Bitflags
     * Copyright (c) 2021 Janne Mareike Koschinski
     *
     * This Source Code Form is subject to the terms of the Mozilla Public License,
     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
     * obtain one at https://mozilla.org/MPL/2.0/.
     */
    
    package de.justjanne.bitflags.test
    
    import de.justjanne.bitflags.Flag
    import de.justjanne.bitflags.Flags
    import de.justjanne.bitflags.toEnumSet
    
    enum class MessageFlagLong(
      override val value: Long,
    ) : Flag<Long> {
      Unknown(0x00),
      Self(0x01),
      Highlight(0x02),
      Redirected(0x04),
      ServerMsg(0x08),
      Backlog(0x10);
    
      companion object : Flags<Long, MessageFlagLong> {
        override val all: Set<MessageFlagLong> = values().toEnumSet()
      }
    }