This repository was archived by the owner on Feb 14, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/top/offsetmonkey538/offsetutils538/api/annotation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package top .offsetmonkey538 .offsetutils538 .api .annotation ;
2+
3+ import java .lang .annotation .Documented ;
4+ import java .lang .annotation .ElementType ;
5+ import java .lang .annotation .Retention ;
6+ import java .lang .annotation .RetentionPolicy ;
7+ import java .lang .annotation .Target ;
8+
9+ /**
10+ * Indicates that the annotated {@link java.util.Collection} or {@link java.util.Map} is unmodifiable.
11+ * <br>
12+ * Mutator methods of annotated elements will throw exceptions or have no effect.
13+ * @see UnmodifiableView
14+ */
15+ @ Documented
16+ @ Retention (RetentionPolicy .CLASS )
17+ @ Target ({ElementType .TYPE_USE })
18+ public @interface Unmodifiable {
19+
20+ }
Original file line number Diff line number Diff line change 1+ package top .offsetmonkey538 .offsetutils538 .api .annotation ;
2+
3+ import java .lang .annotation .Documented ;
4+ import java .lang .annotation .ElementType ;
5+ import java .lang .annotation .Retention ;
6+ import java .lang .annotation .RetentionPolicy ;
7+ import java .lang .annotation .Target ;
8+
9+ /**
10+ * Indicates that the annotated {@link java.util.Collection} or {@link java.util.Map} is unmodifiable.
11+ * <br>
12+ * Mutator methods of annotated elements will throw exceptions or have no effect.
13+ * <p>The content of the collection or map could however still be mutated by other code.</p>
14+ * @see Unmodifiable
15+ */
16+ @ Documented
17+ @ Retention (RetentionPolicy .CLASS )
18+ @ Target ({ElementType .TYPE_USE })
19+ public @interface UnmodifiableView {
20+
21+ }
You can’t perform that action at this time.
0 commit comments