We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fef6a4 commit eaafb4bCopy full SHA for eaafb4b
pom.xml
@@ -6,7 +6,7 @@
6
7
<groupId>com.github.lokic</groupId>
8
<artifactId>java-plus</artifactId>
9
- <version>0.1.3</version>
+ <version>0.1.4</version>
10
<name>java-plus</name>
11
<description>Provide some useful extensions on the basis of java8 to make java more usable.</description>
12
<url>https://github.com/lokic/java-plus</url>
src/main/java/com/github/lokic/javaplus/TypeSafeMap.java
@@ -0,0 +1,16 @@
1
+package com.github.lokic.javaplus;
2
+
3
+import java.util.Map;
4
5
+public class TypeSafeMap {
+ private final Map<?, ?> map;
+ public TypeSafeMap(Map<?, ?> map) {
+ this.map = map;
+ }
13
+ public <K, V> Map<K, V> getMap() {
14
+ return Types.cast(map);
15
16
+}
0 commit comments