An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import codecs | |
import struct | |
class Codec(codecs.Codec): | |
def encode(self,input,errors='strict'): | |
pass | |
def decode(self,input,errors='strict'): | |
unistr = u'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.util.*; | |
import java.util.Map; | |
import java.util.Set; | |
import org.apache.commons.math3.linear.*; | |
import org.apache.lucene.analysis.*; | |
import org.apache.lucene.document.*; | |
import org.apache.lucene.index.*; | |
import org.apache.lucene.store.*; |