Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 8b1029d

Browse files
dummy constructor simple match
1 parent b028d8c commit 8b1029d

5 files changed

Lines changed: 24 additions & 10 deletions

File tree

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
package com.thebluealliance.api.v3.models;
22

3-
import lombok.EqualsAndHashCode;
4-
import lombok.Value;
3+
import lombok.*;
54

65
@EqualsAndHashCode(callSuper = true)
76
@Value
87
public class Match extends SimpleMatch {
98

10-
long post_result_time;
11-
ScoreBreakdown score_breakdown;
12-
Media[] videos;
9+
long post_result_time;
10+
ScoreBreakdown score_breakdown;
11+
Media[] videos;
12+
13+
public Match(long post_result_time, ScoreBreakdown score_breakdown, Media[] videos) throws IllegalAccessException {
14+
super(0, 0, null, null, null, null, 0, 0, 0, null);
15+
throw new IllegalAccessException("bitch why ru calling this");
16+
}
1317

1418
}

src/main/java/com/thebluealliance/api/v3/models/SimpleMatch.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
import java.util.HashMap;
44

55
import lombok.Value;
6+
import lombok.experimental.NonFinal;
67

78
/**
89
* Shortform representation of a FIRST Robotics Competition match
910
*/
1011
@Value
12+
@NonFinal
1113
public class SimpleMatch {
1214

1315
/**
@@ -47,9 +49,13 @@ public class SimpleMatch {
4749
*/
4850
long actual_time;
4951
HashMap<String, Alliance> alliances;
50-
transient Alliance blueAlliance = alliances.get("blue");
52+
Alliance getBlueAlliance() {
53+
return alliances.get("blue");
54+
}
5155

52-
transient Alliance redAlliance = alliances.get("red");
56+
Alliance getRedAlliance(){
57+
return alliances.get("red");
58+
}
5359

5460
/**
5561
* Represents an alliance during a match

0 commit comments

Comments
 (0)