StackOverflow Questions for Tag: instanceof

Matthias
Matthias

Reputation: 277

Check if List is immutable

Score: 2

Views: 158

Answers: 1

Read More

"e instanceof TouchEvent" in Safari doenst work

Score: -1

Views: 40

Answers: 1

Read More
Megamug
Megamug

Reputation: 6347

What is the difference between instanceof and Class.isAssignableFrom(...)?

Score: 511

Views: 286036

Answers: 16

Read More
Albert
Albert

Reputation: 68260

How can I combine instanceof and cast in Java?

Score: 15

Views: 21124

Answers: 5

Read More
edbras
edbras

Reputation: 4404

How to see if an object is an array without using reflection?

Score: 121

Views: 132632

Answers: 6

Read More
kolorowa
kolorowa

Reputation: 36

Is it acceptable to rethrow Exception's cause?

Score: 1

Views: 1655

Answers: 3

Read More
javing
javing

Reputation: 12423

Doubts about the use of polymorphism, and also about how is polymorphism related to casting?

Score: 6

Views: 1048

Answers: 8

Read More
dragonfire
dragonfire

Reputation: 702

What kind of “tampering” is prevented by making `Function.prototype[Symbol.hasInstance]` non-writable and non-configurable?

Score: 3

Views: 571

Answers: 1

Read More
Lucas
Lucas

Reputation: 65

Why is it not possible to define a [Symbol.hasInstance] static method using simple property assignment?

Score: 3

Views: 106

Answers: 1

Read More
Arnault Bonafos
Arnault Bonafos

Reputation: 1

Lua inheritance and instanceof

Score: 0

Views: 53

Answers: 1

Read More
PythonIsGreat
PythonIsGreat

Reputation: 7917

Why would a JavaScript function check if `this` is `instanceof` that same function?

Score: 2

Views: 84

Answers: 2

Read More
Learner
Learner

Reputation: 1523

Calling method that exists in child classes but not in parent class

Score: 7

Views: 6843

Answers: 5

Read More
Persik Lopa
Persik Lopa

Reputation: 37

Validation of the data type when creating a class

Score: -3

Views: 58

Answers: 2

Read More
tommueller
tommueller

Reputation: 2496

How to check instance of the generic in Array with Typescript

Score: 3

Views: 12361

Answers: 2

Read More
castarray
castarray

Reputation: 53

How does instanceof with generics work in Java despite type erasure?

Score: 5

Views: 147

Answers: 1

Read More
Nilesh Kumar
Nilesh Kumar

Reputation: 373

Instance of decorated class not working with instanceof

Score: 0

Views: 56

Answers: 1

Read More
Joey Day
Joey Day

Reputation: 212

In the Rhino JavaScript engine, how can a custom Java object be an instance of final class java.lang.String?

Score: 4

Views: 384

Answers: 2

Read More
Dan
Dan

Reputation: 35483

Getting the class name of an instance

Score: 2009

Views: 1624223

Answers: 12

Read More

Why does TypeScript allow instances of classes not listed in a class array to pass type checks?

Score: 1

Views: 48

Answers: 1

Read More
Michał Kupisiński
Michał Kupisiński

Reputation: 3863

Instanceof for generic with <?> or without <?>

Score: 8

Views: 2418

Answers: 2

Read More
PreviousPage 1Next