문제

Does java have a Data type that is similar to QVariant without using the java qt binding?

I want to have a Map< String, QVariant> so that I can have different data types for each value in the container.

Does JAVA have this?

P.S. JAVA noob!

도움이 되었습니까?

해결책

I am pretty sure what you are looking for is Object, the "mother of all classes". Use a Map<String, Object> and every value in the map can have a different type.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top