[Vala] help with java to vala



Hello,

Is it possible to initialize a static const HashSet?
Similar to this from Java?

8< ------------------------------------------------
    private static final Set<String> STATIC_SET;

    static {
        STATIC_SET = new HashSet<String>();
        STATIC_SET.add("Data One");
        STATIC_SET.add("Data Two");
    }
  ------------------------------------------------- >8

Thank you.
-- 
Regards,
Brian




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]