MetadataField.java

1
package org.cardanofoundation.explorer.api.common.enumeration;
2
3
import java.util.Arrays;
4
import java.util.Map;
5
import java.util.function.Function;
6
import java.util.stream.Collectors;
7
8
import lombok.Getter;
9
10
@Getter
11
public enum MetadataField {
12
  MUSIC_METADATA_VERSION("music_metadata_version"),
13
  RELEASE_TYPE("release_type"),
14
  ALBUM_TITLE("album_title"),
15
  TRACK_NUMBER("track_number"),
16
  SONG_TITLE("song_title"),
17
  SONG_DURATION("song_duration"),
18
  GENRES("genres"),
19
  COPYRIGHT("copyright"),
20
  ARTISTS("artists"),
21
  SERIES("series"),
22
  COLLECTION("collection"),
23
  SET("set"),
24
  MOOD("mood"),
25
  LYRICS("lyrics"),
26
  LYRICISTS("lyricists"),
27
  SPECIAL_THANKS("special_thanks"),
28
  VISUAL_ARTIST("visual_artist"),
29
  DISTRIBUTOR("distributor"),
30
  RELEASE_DATE("release_date"),
31
  PUBLICATION_DATE("publication_date"),
32
  CATALOG_NUMBER("catalog_number"),
33
  BITRATE("bitrate"),
34
  MIX_ENGINEER("mix_engineer"),
35
  MASTERING_ENGINEER("mastering_engineer"),
36
  PRODUCER("producer"),
37
  CO_PRODUCER("co_producer"),
38
  FEATURED_ARTIST("featured_artist"),
39
  RECORDING_ENGINEER("recording_engineer"),
40
  RELEASE_VERSION("release_version"),
41
  PARENTAL_ADVISORY("parental_advisory"),
42
  EXPLICIT("explicit"),
43
  ISRC("isrc"),
44
  ISWC("iswc"),
45
  IPI("ipi"),
46
  IPN("ipn"),
47
  ISNI("isni"),
48
  METADATA_LANGUAGE("metadata_language"),
49
  COUNTRY_OF_ORIGIN("country_of_origin"),
50
  LANGUAGE("language"),
51
  DERIVED_FROM("derived_from"),
52
  LINKS("links"),
53
  NAME("name"),
54
  IMAGE("image"),
55
  MEDIA_TYPE("mediaType"),
56
  DESCRIPTION("description"),
57
  VERSION("version"),
58
  POLICY_ID("policy_id"),
59
  ASSET_NAME("asset_name"),
60
  SRC("src"),
61
  FILES("files"),
62
  CONTRIBUTING_ARTISTS("contributing_artists"),
63
  RELEASE("release"),
64
  RELEASE_TITLE("release_title"),
65
  SONG("song"),
66
  // CIP 20, CIP 83
67
  MSG("msg"),
68
  ENC("enc");
69
70 1 1. getName : replaced return value with "" for org/cardanofoundation/explorer/api/common/enumeration/MetadataField::getName → SURVIVED
  private final String name;
71
  private static final Map<String, MetadataField> fieldMap =
72
      Arrays.stream(values())
73
          .collect(Collectors.toMap(MetadataField::getName, Function.identity()));
74
75
  MetadataField(String name) {
76
    this.name = name;
77
  }
78
}

Mutations

70

1.1
Location : getName
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/common/enumeration/MetadataField::getName → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2