Example usage for java.util EnumSet getClass

List of usage examples for java.util EnumSet getClass

Introduction

In this page you can find the example usage for java.util EnumSet getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:de.javakaffee.kryoserializers.KryoTest.java

@Test(enabled = true)
public void testEnumSet() throws Exception {
    final EnumSet<?> set = EnumSet.allOf(Gender.class);
    final EnumSet<?> deserialized = deserialize(serialize(set), set.getClass());
    assertDeepEquals(deserialized, set);
}