Skip to content

Commit

Permalink
Detail only.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Nov 26, 2024
1 parent dfdbe61 commit c2b9a18
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import org.apache.commons.lang3.StringUtils;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;

import com.fasterxml.jackson.annotation.JsonProperty;

Expand Down Expand Up @@ -295,7 +296,7 @@ public MediaForm(MediaPager pager) {

@lombok.Builder(builderClassName = "Builder")
MediaForm(
MediaPager pager,
@Nullable MediaPager pager,
Collection<String> broadcasters,
Collection<String> portals,
String text,
Expand Down Expand Up @@ -460,11 +461,9 @@ public MediaForm addType(MediaType type) {
}

public Collection<String> getTypesAsStrings() {
List<String> list = new ArrayList<>();
for(MediaType type : getTypes()) {
list.add(type.name());
}
return list;
return getTypes().stream()
.map(MediaType::name)
.toList();
}

public MediaForm setReleaseYear(Short s) {
Expand All @@ -476,7 +475,6 @@ public boolean hasReleaseDate() {
return releaseYear != null;
}


public boolean includeSegments() {
return getTypes().contains(MediaType.SEGMENT);
}
Expand Down Expand Up @@ -553,7 +551,7 @@ public Boolean hasNoMembers() {
}

/**
* @deprecated ?
* @deprecated {@link #setImagesWithoutCreditsCount(IntegerRange)} }
*/
@Deprecated
public boolean hasNoCredits() {
Expand All @@ -569,12 +567,10 @@ public boolean hasSortRange() {
return sortRange != null && sortRange.hasValues();
}


public boolean hasEventRange() {
return eventRange != null && eventRange.hasValues();
}


public boolean hasChannels() {
return has(channels);
}
Expand Down

0 comments on commit c2b9a18

Please sign in to comment.