Confused by the following data type

Ashwin
List<? extends List<? extends ObservationInteger>>

Just to give you a background which probably has nothing to do with the question. Trying to use the JAHMM library to build and score HMM's.

One of the parameters to the functions mentions the above as the datatype and I have no idea what it means.

From what I understand with help from a friend List<? extends ObservationInteger> means a List of instances of any classes extending "ObservationInteger" which is a valid class in the library.

It is the outer List<? extends List<?... that is confusing me.

Can someone throw some light on this?

Evgeniy Dorofeev

List<? extends List... means that it can be List of any Collections implementing List interface.

List<List<? extends ObservationInteger>> list = new ArrayList<List<ObservationInteger>>(); - compiler error because without ? extends compiler requires exact match:

List<List<? ObservationInteger>> list = new ArrayList<List<? extends ObservationInteger>>(); - OK

but this looks better

List<? extends List<? ObservationInteger>> list = new ArrayList<List<ObservationInteger>>(); - OK

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Confused on how to use the following data in a select tag (Angular)

From Dev

A bit confused with the following code

From Dev

Confused with following statements in python

From Dev

Confused about the following 'generics' code

From Dev

I am little confused with the following codes in php

From Dev

How can I create the following data type in Python?

From Dev

Why is there a data type nagging when using conditional operator in following context?

From Dev

Confused by this SVG path data

From Dev

Core Data: confused with relationships

From Dev

Corrupted data synchronization confused

From Dev

Haskell: Confused about type of `>>=` operator

From Dev

Confused about an intermediate type in Idris

From Dev

confused by C# type conversion

From Dev

Confused with C type casting with characters

From Dev

Confused about an intermediate type in Idris

From Dev

Confused about type class constraints

From Dev

Confused about data ingestion hadoop

From Dev

What is 'address' in the following Java code? Is it a separate Java class or a user defined data type?

From Dev

How to render multi line chart with DC.js with the following type of data - JAVASCRIPT (DC.js)

From Dev

If user skips rows to input a numeric value, force user to type in data in the following available row

From Dev

Confused by data binding and selecting specific data

From Dev

polyfit() not following the data

From Dev

Very confused by Java 8 Comparator type inference

From Dev

Confused on type issue with Contains and Dictionary / [String:String]

From Dev

Confused with usage of type parameter used in scala

From Dev

Given the following, what type is "function"?

From Dev

Got completely confused on how to OpenCL data transfer

From Dev

Got completely confused on how to OpenCL data transfer

From Dev

Calculating ranks from the following data

Related Related

  1. 1

    Confused on how to use the following data in a select tag (Angular)

  2. 2

    A bit confused with the following code

  3. 3

    Confused with following statements in python

  4. 4

    Confused about the following 'generics' code

  5. 5

    I am little confused with the following codes in php

  6. 6

    How can I create the following data type in Python?

  7. 7

    Why is there a data type nagging when using conditional operator in following context?

  8. 8

    Confused by this SVG path data

  9. 9

    Core Data: confused with relationships

  10. 10

    Corrupted data synchronization confused

  11. 11

    Haskell: Confused about type of `>>=` operator

  12. 12

    Confused about an intermediate type in Idris

  13. 13

    confused by C# type conversion

  14. 14

    Confused with C type casting with characters

  15. 15

    Confused about an intermediate type in Idris

  16. 16

    Confused about type class constraints

  17. 17

    Confused about data ingestion hadoop

  18. 18

    What is 'address' in the following Java code? Is it a separate Java class or a user defined data type?

  19. 19

    How to render multi line chart with DC.js with the following type of data - JAVASCRIPT (DC.js)

  20. 20

    If user skips rows to input a numeric value, force user to type in data in the following available row

  21. 21

    Confused by data binding and selecting specific data

  22. 22

    polyfit() not following the data

  23. 23

    Very confused by Java 8 Comparator type inference

  24. 24

    Confused on type issue with Contains and Dictionary / [String:String]

  25. 25

    Confused with usage of type parameter used in scala

  26. 26

    Given the following, what type is "function"?

  27. 27

    Got completely confused on how to OpenCL data transfer

  28. 28

    Got completely confused on how to OpenCL data transfer

  29. 29

    Calculating ranks from the following data

HotTag

Archive